com.caucho.bytecode
Class JConstructorWrapper

java.lang.Object
  extended by com.caucho.bytecode.JAnnotationObject
      extended by com.caucho.bytecode.JAccessibleObject
          extended by com.caucho.bytecode.JMethod
              extended by com.caucho.bytecode.JConstructorWrapper

public class JConstructorWrapper
extends JMethod

Wrapper around the Java Constructor for a JMethod.


Constructor Summary
JConstructorWrapper(java.lang.reflect.Constructor method, JClassLoader loader)
           
 
Method Summary
 JAnnotation[] getDeclaredAnnotations()
          Returns the annotations.
 JClass getDeclaringClass()
          Returns the declaring type.
 JClass[] getExceptionTypes()
          Returns the exception types.
 JType getGenericReturnType()
          Returns the return type.
 java.lang.String getName()
          Returns the method name.
 JClass[] getParameterTypes()
          Returns the parameter types.
 JClass getReturnType()
          Returns the return type.
 boolean isAbstract()
          Returns true for an abstract method.
 boolean isFinal()
          Returns true for a final method.
 boolean isPrivate()
          Returns true for a private method
 boolean isProtected()
          Returns true for a protected method.
 boolean isPublic()
          Returns true for a public method.
 boolean isStatic()
          Returns true for a static method.
 
Methods inherited from class com.caucho.bytecode.JMethod
equals, getFullName, 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

JConstructorWrapper

public JConstructorWrapper(java.lang.reflect.Constructor method,
                           JClassLoader loader)
Method Detail

getName

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

Specified by:
getName in class JMethod

isStatic

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

Specified by:
isStatic in class JMethod

isPrivate

public boolean isPrivate()
Returns true for a private method

Specified by:
isPrivate in class JMethod

isPublic

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

Specified by:
isPublic in class JMethod

isProtected

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

Specified by:
isProtected in class JMethod

isFinal

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

Specified by:
isFinal in class JMethod

isAbstract

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

Specified by:
isAbstract in class JMethod

getDeclaringClass

public JClass getDeclaringClass()
Returns the declaring type.

Specified by:
getDeclaringClass in class JMethod

getReturnType

public JClass getReturnType()
Returns the return type.

Specified by:
getReturnType in class JMethod

getGenericReturnType

public JType getGenericReturnType()
Returns the return type.

Specified by:
getGenericReturnType in class JMethod

getParameterTypes

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

Specified by:
getParameterTypes in class JMethod

getExceptionTypes

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

Specified by:
getExceptionTypes in class JMethod

getDeclaredAnnotations

public JAnnotation[] getDeclaredAnnotations()
Returns the annotations.

Specified by:
getDeclaredAnnotations in class JMethod