public abstract class MethodInfoBase extends MemberInfoBase implements MethodInfo
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Variable> |
arguments |
protected java.util.List<Type> |
exceptions |
protected boolean |
isConstructor |
protected Type |
rtype |
| Modifier | Constructor and Description |
|---|---|
protected |
MethodInfoBase(ClassInfo cinfo,
int modifiers) |
protected |
MethodInfoBase(ClassInfo cinfo,
int modifiers,
Type rtype,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Variable> |
arguments()
Return a list of arguments for this method.
|
void |
clearHashCode() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Type> |
exceptions()
Return a list of all Exception types that are declared as being
throwable from this method.
|
java.lang.reflect.Constructor |
getConstructor()
Return the Constructor that is represented by this MethodInfo, or null
if no such Constructor instance exists (because this MethodInfo represents
a Constructor being generated, rather than a Constructor in a Class that is
loaded into the VM).
|
java.lang.reflect.Method |
getMethod()
Return the Method that is represented by this MethodInfo, or null
if no such Method instance exists (because this MethodInfo represents
a Method being generated, rather than a Method in a Class that is
loaded into the VM).
|
int |
hashCode() |
boolean |
isConstructor()
Returns true if this is a constructor, false if
method.
|
Type |
returnType()
Return the Type that is returned by this method.
|
Signature |
signature()
Return the signature of this method.
|
isAccessibleInContext, modifiers, myClassInfo, name, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAccessibleInContext, modifiers, myClassInfo, nameprotected Type rtype
protected java.util.List<Type> exceptions
protected java.util.List<Variable> arguments
protected boolean isConstructor
protected MethodInfoBase(ClassInfo cinfo, int modifiers)
public boolean isConstructor()
MethodInfoisConstructor in interface MethodInfopublic Type returnType()
MethodInforeturnType in interface MethodInfopublic java.util.List<Type> exceptions()
MethodInfoexceptions in interface MethodInfopublic java.util.List<Variable> arguments()
MethodInfoarguments in interface MethodInfopublic Signature signature()
MethodInfosignature in interface MethodInfopublic java.lang.reflect.Method getMethod()
MethodInfogetMethod in interface MethodInfopublic java.lang.reflect.Constructor getConstructor()
MethodInfogetConstructor in interface MethodInfopublic boolean equals(java.lang.Object obj)
equals in class MemberInfoBasepublic void clearHashCode()
public int hashCode()
hashCode in class MemberInfoBase