org.glassfish.pfl.dynamic.codegen.impl
Class MethodInfoReflectiveImpl

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
      extended by org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
          extended by 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 inherited from class org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
arguments, exceptions, isConstructor, rtype
 
Constructor Summary
MethodInfoReflectiveImpl(ClassInfo cinfo, Constructor constructor)
           
MethodInfoReflectiveImpl(ClassInfo cinfo, Method method)
           
 
Method Summary
 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).
 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).
 
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
 

Constructor Detail

MethodInfoReflectiveImpl

public MethodInfoReflectiveImpl(ClassInfo cinfo,
                                Constructor constructor)

MethodInfoReflectiveImpl

public MethodInfoReflectiveImpl(ClassInfo cinfo,
                                Method method)
Method Detail

getMethod

public Method getMethod()
Description copied from interface: MethodInfo
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).

Specified by:
getMethod in interface MethodInfo
Overrides:
getMethod in class MethodInfoBase

getConstructor

public Constructor getConstructor()
Description copied from interface: MethodInfo
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).

Specified by:
getConstructor in interface MethodInfo
Overrides:
getConstructor in class MethodInfoBase


Copyright © 2013 Oracle. All Rights Reserved.