java.lang.reflect.Method
except without using reflection to invoke the method
| Modifier and Type | Field and Description |
|---|---|
| public static final MetaMethod[] | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkParameters(Class<T>[]
the arguments to check arguments)Checks that the given parameters are valid to call this method |
| public Object | |
| private static boolean | Returns: true if the modifiers are compatibleChecks the compatibility between two modifier masks. |
| public Object | Returns: The return value of the invoked method.The object the method is to be called at. object, Object[] Arguments for the method invocation. argumentArray)Invokes the method this object represents. |
| protected static boolean | |
| protected static boolean | |
| public abstract CachedClass | |
| public String | getDescriptor()
Return a descriptor of this method based on the return type and parameters of this method. |
| public abstract int | |
| public String | |
| public abstract String | |
| public abstract Class | |
| public synchronized String | |
| public abstract Object | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if method is for the same method as this method, false otherwise.A metaMethod instance method)Returns true if this this metamethod represents the same method as the argument. |
| public final boolean | |
| public final boolean | Returns: true if this method is protectedReturns whether or not this method is protected. |
| public final boolean | |
| public final boolean | Returns: true if the given method has the same name, parameters, return type and modifiers but may be defined on another typethe method to compare against method)
|
| public boolean | |
| public final RuntimeException | processDoMethodInvokeException(Exception e, Object object, Object[] argumentArray)
This method is called when an exception occurs while invoking this method. |
| public String |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final MetaMethod[] EMPTY_ARRAY | |
| mopName | back to summary |
|---|---|
| private String mopName | |
| signature | back to summary |
|---|---|
| private String signature | |
| MetaMethod | back to summary |
|---|---|
| public MetaMethod() Constructor for a metamethod with an empty parameter list | |
| MetaMethod | back to summary |
|---|---|
| public MetaMethod(Class<T>[] pt) Constructor wit a list of parameter classes
| |
| checkParameters | back to summary |
|---|---|
| public void checkParameters(Class<T>[] arguments) Checks that the given parameters are valid to call this method
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| compatibleModifiers | back to summary |
|---|---|
| private static boolean compatibleModifiers(int modifiersA, int modifiersB) Checks the compatibility between two modifier masks. Checks that they are equal with regards to access and static modifier.
| |
| doMethodInvoke | back to summary |
|---|---|
| public Object doMethodInvoke(Object object, Object[] argumentArray) Invokes the method this object represents. This method is not final but it should be overloaded very carefully and only by generated methods there is no guarantee that it will be called | |
| equal | back to summary |
|---|---|
| protected static boolean equal(CachedClass[] a, Class<T>[] b) | |
| equal | back to summary |
|---|---|
| protected static boolean equal(CachedClass[] a, CachedClass[] b) | |
| getDeclaringClass | back to summary |
|---|---|
| public abstract CachedClass getDeclaringClass() Gets the class where this method is declared
| |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() Return a descriptor of this method based on the return type and parameters of this method. | |
| getModifiers | back to summary |
|---|---|
| public abstract int getModifiers() Returns the modifiers for this method
| |
| getMopName | back to summary |
|---|---|
| public String getMopName() | |
| getName | back to summary |
|---|---|
| public abstract String getName() Returns the name of the method represented by this class
| |
| getReturnType | back to summary |
|---|---|
| public abstract Class Access the return type for this method
| |
| getSignature | back to summary |
|---|---|
| public synchronized String getSignature() Returns the signature of this method
| |
| invoke | back to summary |
|---|---|
| public abstract Object invoke(Object object, Object[] arguments) Invoke this method | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Returns whether or not this method is abstract.
| |
| isCacheable | back to summary |
|---|---|
| public boolean isCacheable() Returns whether this object is cacheable | |
| isMethod | back to summary |
|---|---|
| public boolean isMethod(MetaMethod method) Returns true if this this metamethod represents the same method as the argument.
| |
| isPrivate | back to summary |
|---|---|
| public final boolean isPrivate() Returns whether or not this method is private.
| |
| isProtected | back to summary |
|---|---|
| public final boolean isProtected() Returns whether or not this method is protected.
| |
| isPublic | back to summary |
|---|---|
| public final boolean isPublic() Returns whether or not this method is public.
| |
| isSame | back to summary |
|---|---|
public final boolean isSame(MetaMethod method)
| |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() Returns whether or not this method is static.
| |
| processDoMethodInvokeException | back to summary |
|---|---|
| public final RuntimeException processDoMethodInvokeException(Exception e, Object object, Object[] argumentArray) This method is called when an exception occurs while invoking this method. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this method
| |