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

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
      extended by 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
protected  List<Variable> arguments
           
protected  List<Type> exceptions
           
protected  boolean isConstructor
           
protected  Type rtype
           
 
Constructor Summary
protected MethodInfoBase(ClassInfo cinfo, int modifiers)
           
protected MethodInfoBase(ClassInfo cinfo, int modifiers, Type rtype, String name)
           
 
Method Summary
 List<Variable> arguments()
          Return a list of arguments for this method.
 void clearHashCode()
           
 boolean equals(Object obj)
           
 List<Type> exceptions()
          Return a list of all Exception types that are declared as being throwable from this method.
 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).
 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.
 
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 List<Type> exceptions

arguments

protected List<Variable> arguments

isConstructor

protected boolean isConstructor
Constructor Detail

MethodInfoBase

protected MethodInfoBase(ClassInfo cinfo,
                         int modifiers)

MethodInfoBase

protected MethodInfoBase(ClassInfo cinfo,
                         int modifiers,
                         Type rtype,
                         String name)
Method Detail

isConstructor

public boolean isConstructor()
Description copied from interface: MethodInfo
Returns true if this is a constructor, false if method.

Specified by:
isConstructor in interface MethodInfo

returnType

public Type returnType()
Description copied from interface: MethodInfo
Return the Type that is returned by this method.

Specified by:
returnType in interface MethodInfo

exceptions

public List<Type> exceptions()
Description copied from interface: MethodInfo
Return a list of all Exception types that are declared as being throwable from this method.

Specified by:
exceptions in interface MethodInfo

arguments

public List<Variable> arguments()
Description copied from interface: MethodInfo
Return a list of arguments for this method.

Specified by:
arguments in interface MethodInfo

signature

public Signature signature()
Description copied from interface: MethodInfo
Return the signature of this method.

Specified by:
signature in interface MethodInfo

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

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

equals

public boolean equals(Object obj)
Overrides:
equals in class MemberInfoBase

clearHashCode

public void clearHashCode()

hashCode

public int hashCode()
Overrides:
hashCode in class MemberInfoBase


Copyright © 2013 Oracle. All Rights Reserved.