|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bytecode.JAnnotationObject
com.caucho.bytecode.JAccessibleObject
com.caucho.bytecode.JField
com.caucho.bytecode.JavaField
public class JavaField
Represents a java field.
| Constructor Summary | |
|---|---|
JavaField()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attr)
Adds an attribute. |
boolean |
equals(java.lang.Object o)
Returns true if equals. |
JavaField |
export(JavaClass cl,
JavaClass target)
exports the field |
int |
getAccessFlags()
Gets the access flags |
Attribute |
getAttribute(java.lang.String name)
Returns the attribute. |
JavaClassLoader |
getClassLoader()
Returns the class loader. |
JAnnotation[] |
getDeclaredAnnotations()
Returns the declared annotations. |
JClass |
getDeclaringClass()
Returns the declaring class. |
java.lang.String |
getDescriptor()
Gets the descriptor. |
JType |
getGenericType()
Gets the typename. |
java.lang.String |
getName()
Gets the name. |
JClass |
getType()
Gets the typename. |
boolean |
isPrivate()
Returns true for a private field. |
boolean |
isStatic()
Returns true for a static field. |
boolean |
isTransient()
Returns true for a transient field. |
void |
setAccessFlags(int flags)
Sets the access flags |
void |
setDescriptor(java.lang.String descriptor)
Sets the descriptor. |
void |
setJavaClass(JavaClass jClass)
Sets the JavaClass. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setWrite(boolean isWrite)
|
java.lang.String |
toString()
|
void |
write(ByteCodeWriter out)
Writes the field to the output. |
| Methods inherited from class com.caucho.bytecode.JField |
|---|
getReturnType |
| 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 |
|---|
public JavaField()
| Method Detail |
|---|
public void setJavaClass(JavaClass jClass)
public void setWrite(boolean isWrite)
public JClass getDeclaringClass()
getDeclaringClass in class JFieldpublic JavaClassLoader getClassLoader()
public void setName(java.lang.String name)
public java.lang.String getName()
getName in class JFieldpublic void setAccessFlags(int flags)
public int getAccessFlags()
public void setDescriptor(java.lang.String descriptor)
public java.lang.String getDescriptor()
public JClass getType()
getType in class JFieldpublic boolean isStatic()
isStatic in class JFieldpublic boolean isPrivate()
isPrivate in class JFieldpublic boolean isTransient()
isTransient in class JFieldpublic JType getGenericType()
getGenericType in class JFieldpublic void addAttribute(Attribute attr)
public Attribute getAttribute(java.lang.String name)
public JAnnotation[] getDeclaredAnnotations()
getDeclaredAnnotations in class JAnnotationObject
public void write(ByteCodeWriter out)
throws java.io.IOException
java.io.IOException
public JavaField export(JavaClass cl,
JavaClass target)
public boolean equals(java.lang.Object o)
JField
equals in class JFieldpublic java.lang.String toString()
toString in class JField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||