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.Object
Method
signature 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 boolean
equals(java.lang.Object obj)
java.lang.String[]
getArgumentTypes()
Returns the method argument types.java.lang.String
getContext()
Returns the method context (i.e.java.lang.String
getName()
Returns the method name.int
hashCode()
boolean
isStatic()
Returns whether the method is static.java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-