Class MethodInfoBase
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
-
- org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
-
- All Implemented Interfaces:
MemberInfo,MethodInfo
- Direct Known Subclasses:
MethodGenerator,MethodInfoReflectiveImpl
public abstract class MethodInfoBase extends MemberInfoBase implements MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Variable>argumentsprotected java.util.List<Type>exceptionsprivate booleanhashIsCachedprivate inthashValueprotected booleanisConstructorprotected Typertypeprivate Signaturesigprivate booleansigIsCached
-
Constructor Summary
Constructors Modifier Constructor Description protectedMethodInfoBase(ClassInfo cinfo, int modifiers)protectedMethodInfoBase(ClassInfo cinfo, int modifiers, Type rtype, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Variable>arguments()Return a list of arguments for this method.voidclearHashCode()booleanequals(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.ConstructorgetConstructor()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.MethodgetMethod()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).inthashCode()booleanisConstructor()Returns true if this is a constructor, false if method.TypereturnType()Return the Type that is returned by this method.Signaturesignature()Return the signature of this method.-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
isAccessibleInContext, modifiers, myClassInfo, name, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.spi.MemberInfo
isAccessibleInContext, modifiers, myClassInfo, name
-
-
-
-
Field Detail
-
rtype
protected Type rtype
-
exceptions
protected java.util.List<Type> exceptions
-
arguments
protected java.util.List<Variable> arguments
-
isConstructor
protected boolean isConstructor
-
sig
private Signature sig
-
sigIsCached
private boolean sigIsCached
-
hashValue
private int hashValue
-
hashIsCached
private boolean hashIsCached
-
-
Method Detail
-
isConstructor
public boolean isConstructor()
Description copied from interface:MethodInfoReturns true if this is a constructor, false if method.- Specified by:
isConstructorin interfaceMethodInfo
-
returnType
public Type returnType()
Description copied from interface:MethodInfoReturn the Type that is returned by this method.- Specified by:
returnTypein interfaceMethodInfo
-
exceptions
public java.util.List<Type> exceptions()
Description copied from interface:MethodInfoReturn a list of all Exception types that are declared as being throwable from this method.- Specified by:
exceptionsin interfaceMethodInfo
-
arguments
public java.util.List<Variable> arguments()
Description copied from interface:MethodInfoReturn a list of arguments for this method.- Specified by:
argumentsin interfaceMethodInfo
-
signature
public Signature signature()
Description copied from interface:MethodInfoReturn the signature of this method.- Specified by:
signaturein interfaceMethodInfo
-
getMethod
public java.lang.reflect.Method getMethod()
Description copied from interface:MethodInfoReturn 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).- Specified by:
getMethodin interfaceMethodInfo
-
getConstructor
public java.lang.reflect.Constructor getConstructor()
Description copied from interface:MethodInfoReturn 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).- Specified by:
getConstructorin interfaceMethodInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMemberInfoBase
-
clearHashCode
public void clearHashCode()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMemberInfoBase
-
-