Package kieker.common.util.signature
Class Signature
java.lang.Object
kieker.common.util.signature.Signature
public class Signature
extends java.lang.Object
A signature for a software operation. Note that this is just an operation signature declaration which is not bound to an implementing class or interface.
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSTRUCTOR_METHOD_NAMEstatic java.lang.StringNO_RETURN_TYPEThis constant can be used to mark that a signature has no return type. -
Constructor Summary
Constructors Constructor Description Signature(java.lang.String name, java.lang.String[] modifierList, java.lang.String returnType, java.lang.String[] paramTypeList)Please use the constantNO_RETURN_TYPEto indicate that the Signature contains no return type. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.String[]getModifier()java.lang.StringgetName()java.lang.String[]getParamTypeList()java.lang.StringgetReturnType()inthashCode()booleanhasReturnType()Tells whether the current signature has a return type or not.java.lang.StringtoString()
-
Field Details
-
NO_RETURN_TYPE
public static final java.lang.String NO_RETURN_TYPEThis constant can be used to mark that a signature has no return type.- See Also:
- Constant Field Values
-
CONSTRUCTOR_METHOD_NAME
public static final java.lang.String CONSTRUCTOR_METHOD_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
Signature
public Signature(java.lang.String name, java.lang.String[] modifierList, java.lang.String returnType, java.lang.String[] paramTypeList)Please use the constantNO_RETURN_TYPEto indicate that the Signature contains no return type.- Parameters:
name- The name of the operation.modifierList- The list of modifiers of the operation.returnType- The return type of the operation. If this parameter is null, the return type will be set toNO_RETURN_TYPEparamTypeList- The list of parameters of the operation.s
-
-
Method Details
-
getName
public final java.lang.String getName() -
getModifier
public final java.lang.String[] getModifier() -
getParamTypeList
public final java.lang.String[] getParamTypeList() -
getReturnType
public final java.lang.String getReturnType() -
hasReturnType
public final boolean hasReturnType()Tells whether the current signature has a return type or not.- Returns:
- true if and only if the signature has a return type.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-