com.caucho.bytecode
Class JMethod

java.lang.Object
  extended by com.caucho.bytecode.JAnnotationObject
      extended by com.caucho.bytecode.JAccessibleObject
          extended by com.caucho.bytecode.JMethod
Direct Known Subclasses:
JavaMethod, JConstructorWrapper, JMethodWrapper

public abstract class JMethod
extends JAccessibleObject

Represents an introspected java method.


Constructor Summary
JMethod()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if equals.
abstract  JAnnotation[] getDeclaredAnnotations()
          Returns the declared annotaions.
abstract  JClass getDeclaringClass()
          Returns the declaring class
abstract  JClass[] getExceptionTypes()
          Returns the exception types.
 java.lang.String getFullName()
          Returns a full method name with arguments.
abstract  JType getGenericReturnType()
          Returns the parameterized return type of the field.
abstract  java.lang.String getName()
          Returns the method name.
abstract  JClass[] getParameterTypes()
          Returns the parameter types.
abstract  JClass getReturnType()
          Returns the return type.
abstract  boolean isAbstract()
          Returns true for an abstract method.
abstract  boolean isFinal()
          Returns true for a final method.
abstract  boolean isPrivate()
          Returns true for a private method.
abstract  boolean isProtected()
          Returns true for a protected method.
abstract  boolean isPublic()
          Returns true for a public method.
abstract  boolean isStatic()
          Returns true for a static method.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.bytecode.JAccessibleObject
getLine
 
Methods inherited from class com.caucho.bytecode.JAnnotationObject
getAnnotation, getAnnotation, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMethod

public JMethod()
Method Detail

getName

public abstract java.lang.String getName()
Returns the method name.

Specified by:
getName in class JAccessibleObject

isStatic

public abstract boolean isStatic()
Returns true for a static method.


isPrivate

public abstract boolean isPrivate()
Returns true for a private method.


isPublic

public abstract boolean isPublic()
Returns true for a public method.


isProtected

public abstract boolean isProtected()
Returns true for a protected method.


isAbstract

public abstract boolean isAbstract()
Returns true for an abstract method.


isFinal

public abstract boolean isFinal()
Returns true for a final method.


getDeclaringClass

public abstract JClass getDeclaringClass()
Returns the declaring class

Specified by:
getDeclaringClass in class JAccessibleObject

getReturnType

public abstract JClass getReturnType()
Returns the return type.

Specified by:
getReturnType in class JAccessibleObject

getGenericReturnType

public abstract JType getGenericReturnType()
Returns the parameterized return type of the field.


getParameterTypes

public abstract JClass[] getParameterTypes()
Returns the parameter types.


getExceptionTypes

public abstract JClass[] getExceptionTypes()
Returns the exception types.


getDeclaredAnnotations

public abstract JAnnotation[] getDeclaredAnnotations()
Returns the declared annotaions.

Overrides:
getDeclaredAnnotations in class JAnnotationObject

getFullName

public java.lang.String getFullName()
Returns a full method name with arguments.


equals

public boolean equals(java.lang.Object o)
Returns true if equals.

Overrides:
equals in class JAccessibleObject

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object