kieker.common.util
Class ClassOperationSignaturePair
java.lang.Object
kieker.common.util.ClassOperationSignaturePair
public class ClassOperationSignaturePair
- extends Object
- Author:
- Andre van Hoorn, Jan Waller
Method Summary |
static String |
createOperationSignatureString(String fqClassName,
Signature signature)
Given a fully-qualified class name fqClassName (e.g., a.b.c.D ) and
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) ). |
String |
getFqClassname()
|
String |
getPackageName()
|
Signature |
getSignature()
|
String |
getSimpleClassname()
|
static ClassOperationSignaturePair |
splitOperationSignatureStr(String operationSignatureStr)
Extracts an ClassOperationSignaturePair from an an operation signature string (e.g., public static Boolean a.b.c.D.op1(Integer, Long) ). |
static ClassOperationSignaturePair |
splitOperationSignatureStr(String operationSignatureStr,
boolean javaConstructor)
|
String |
toOperationSignatureString()
|
String |
toString()
Returns a String representation of this ClassOperationSignaturePair using the createOperationSignatureString(String, Signature) method. |
ClassOperationSignaturePair
public ClassOperationSignaturePair(String fqClassname,
Signature signature)
- Parameters:
fqClassname
- signature
-
getFqClassname
public String getFqClassname()
- Returns:
- the fqClassname
getSignature
public Signature getSignature()
- Returns:
- the signature
getSimpleClassname
public String getSimpleClassname()
getPackageName
public String getPackageName()
toOperationSignatureString
public String toOperationSignatureString()
splitOperationSignatureStr
public static ClassOperationSignaturePair splitOperationSignatureStr(String operationSignatureStr)
- Extracts an
ClassOperationSignaturePair
from an 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.
TODO: Move this method to the then-extracted class FQComponentNameSignaturePair
- Parameters:
operationSignatureStr
-
splitOperationSignatureStr
public static ClassOperationSignaturePair splitOperationSignatureStr(String operationSignatureStr,
boolean javaConstructor)
createOperationSignatureString
public static String createOperationSignatureString(String fqClassName,
Signature signature)
- Given a fully-qualified class name fqClassName (e.g.,
a.b.c.D
) and
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)
).
- Parameters:
fqClassName
- signature
-
toString
public String toString()
- Returns a String representation of this
ClassOperationSignaturePair
using the createOperationSignatureString(String, Signature)
method.
- Overrides:
toString
in class Object
Copyright 2012 Kieker Project, http://kieker-monitoring.net>