com.caucho.bytecode
Class JFieldWrapper

java.lang.Object
  extended by com.caucho.bytecode.JAnnotationObject
      extended by com.caucho.bytecode.JAccessibleObject
          extended by com.caucho.bytecode.JField
              extended by com.caucho.bytecode.JFieldWrapper

public class JFieldWrapper
extends JField

Wrapper around the Java field for a JField.


Constructor Summary
JFieldWrapper(java.lang.reflect.Field field, JClassLoader loader)
           
 
Method Summary
 JClass getDeclaringClass()
          Returns the declaring type.
 JType getGenericType()
          Returns the return type.
 java.lang.String getName()
          Returns the field name.
 JClass getType()
          Returns the return type.
 boolean isPrivate()
          Returns true for a private field.
 boolean isStatic()
          Returns true for a static field.
 boolean isTransient()
          Returns true for a transient field.
 
Methods inherited from class com.caucho.bytecode.JField
equals, getReturnType, toString
 
Methods inherited from class com.caucho.bytecode.JAccessibleObject
getLine
 
Methods inherited from class com.caucho.bytecode.JAnnotationObject
getAnnotation, getAnnotation, getDeclaredAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JFieldWrapper

public JFieldWrapper(java.lang.reflect.Field field,
                     JClassLoader loader)
Method Detail

getName

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

Specified by:
getName in class JField

getDeclaringClass

public JClass getDeclaringClass()
Returns the declaring type.

Specified by:
getDeclaringClass in class JField

getType

public JClass getType()
Returns the return type.

Specified by:
getType in class JField

getGenericType

public JType getGenericType()
Returns the return type.

Specified by:
getGenericType in class JField

isStatic

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

Specified by:
isStatic in class JField

isPrivate

public boolean isPrivate()
Returns true for a private field.

Specified by:
isPrivate in class JField

isTransient

public boolean isTransient()
Returns true for a transient field.

Specified by:
isTransient in class JField