public class ClassOperationSignaturePair
extends java.lang.Object
Constructor and Description |
---|
ClassOperationSignaturePair(java.lang.String fqClassname,
Signature signature)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createOperationSignatureString(java.lang.String fqClassName,
Signature signature)
Given a fully-qualified class name fqClassName (e.g.,
a.b.c.D ) and a Signature (e.g., for operation op1 with
modifiers public and static , the return type Boolean , and the parameter types Integer and
Long ), the method returns an operation signature string (e.g., public static Boolean a.b.c.D.op1(Integer, Long) ). |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFqClassname()
Delivers the fully qualified class name.
|
java.lang.String |
getPackageName()
This method delivers the package name of the class.
|
Signature |
getSignature()
Delivers the signature.
|
java.lang.String |
getSimpleClassname()
This method delivers a simplified version of the fully qualified class name.
|
int |
hashCode() |
static ClassOperationSignaturePair |
splitOperationSignatureStr(java.lang.String operationSignatureStr)
Extracts an
ClassOperationSignaturePair from an operation signature string (e.g., public static Boolean a.b.c.D.op1(Integer, Long) ). |
static ClassOperationSignaturePair |
splitOperationSignatureStr(java.lang.String operationSignatureStr,
boolean javaConstructor)
Split up an operation signature string and populate a class operation signature pair.
|
java.lang.String |
toOperationSignatureString()
This method assembles an operation signature string from the current fields.
|
java.lang.String |
toString()
Returns a String representation of this
ClassOperationSignaturePair using the createOperationSignatureString(String, Signature) method. |
public ClassOperationSignaturePair(java.lang.String fqClassname, Signature signature)
fqClassname
- The fully qualified name of the class.signature
- The signature.public java.lang.String getFqClassname()
public Signature getSignature()
public java.lang.String getSimpleClassname()
public java.lang.String getPackageName()
public java.lang.String toOperationSignatureString()
public static ClassOperationSignaturePair splitOperationSignatureStr(java.lang.String operationSignatureStr)
ClassOperationSignaturePair
from an operation signature string (e.g., public static Boolean a.b.c.D.op1(Integer, Long)
).
Modifier list, return type, and parameter list wrapped by parentheses are optional. But note that a return type must be given if one or more modifiers are
present.operationSignatureStr
- The signature string.ClassOperationSignaturePair
extracted from the given string.public static ClassOperationSignaturePair splitOperationSignatureStr(java.lang.String operationSignatureStr, boolean javaConstructor)
operationSignatureStr
- the signature stringjavaConstructor
- if true the string holds a constructor signaturepublic static java.lang.String createOperationSignatureString(java.lang.String fqClassName, Signature signature)
a.b.c.D
) and a Signature
(e.g., for operation op1
with
modifiers public
and static
, the return type Boolean
, and the parameter types Integer
and
Long
), the method returns an operation signature string (e.g., public static Boolean a.b.c.D.op1(Integer, Long)
).fqClassName
- The fully qualified class name.signature
- The signature string.public java.lang.String toString()
ClassOperationSignaturePair
using the createOperationSignatureString(String, Signature)
method.toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright 2017 Kieker Project, http://kieker-monitoring.net