Package org.eclipse.m2m.atl.emftvm.util
Class MethodSignature
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.MethodSignature
-
public final class MethodSignature extends java.lang.ObjectMethodsignature for EMFTVM method caching.
-
-
Constructor Summary
Constructors Constructor Description MethodSignature(java.lang.Class<?> context, java.lang.String name, java.lang.Class<?>[] argumentTypes, boolean isStatic)Creates a newMethodSignature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.String[]getArgumentTypes()Returns the method argument types.java.lang.StringgetContext()Returns the method context (i.e.java.lang.StringgetName()Returns the method name.inthashCode()booleanisStatic()Returns whether the method is static.java.lang.StringtoString()
-
-
-
Constructor Detail
-
MethodSignature
public MethodSignature(java.lang.Class<?> context, java.lang.String name, java.lang.Class<?>[] argumentTypes, boolean isStatic)Creates a newMethodSignature.- Parameters:
name- the method nameargumentTypes- the method argument typesisStatic- whether the method is static
-
-
Method Detail
-
getContext
public java.lang.String getContext()
Returns the method context (i.e. declaring class).- Returns:
- the context
-
getName
public java.lang.String getName()
Returns the method name.- Returns:
- the name
-
getArgumentTypes
public java.lang.String[] getArgumentTypes()
Returns the method argument types.- Returns:
- the argumentTypes
-
isStatic
public boolean isStatic()
Returns whether the method is static.- Returns:
- the isStatic
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-