Class MethodInfoReflectiveImpl
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
-
- org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
-
- org.glassfish.pfl.dynamic.codegen.impl.MethodInfoReflectiveImpl
-
- All Implemented Interfaces:
MemberInfo,MethodInfo
@Immutable public class MethodInfoReflectiveImpl extends MethodInfoBase
Implementation of MethodInfo interface for actual Method. Note that this internally caches the Method, and so all the usual precautions for storing instances of this class in maps apply.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Constructorconstructorprivate java.lang.reflect.Methodmethod-
Fields inherited from class org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
arguments, exceptions, isConstructor, rtype
-
-
Constructor Summary
Constructors Constructor Description MethodInfoReflectiveImpl(ClassInfo cinfo, java.lang.reflect.Constructor constructor)MethodInfoReflectiveImpl(ClassInfo cinfo, java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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).private voidinit(java.lang.Class<?>[] exceptions, java.lang.Class<?>[] arguments)-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
arguments, clearHashCode, equals, exceptions, hashCode, isConstructor, returnType, signature
-
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
-
-
-
-
Method Detail
-
init
private void init(java.lang.Class<?>[] exceptions, java.lang.Class<?>[] arguments)
-
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- Overrides:
getMethodin classMethodInfoBase
-
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- Overrides:
getConstructorin classMethodInfoBase
-
-