public class JavaField extends JField
Constructor and Description |
---|
JavaField() |
Modifier and Type | Method and Description |
---|---|
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.
|
getReturnType
getLine
getAnnotation, getAnnotation, isAnnotationPresent, isAnnotationPresent
public void setJavaClass(JavaClass jClass)
public void setWrite(boolean isWrite)
public JClass getDeclaringClass()
getDeclaringClass
in class JField
public JavaClassLoader getClassLoader()
public void setName(java.lang.String name)
public void setAccessFlags(int flags)
public int getAccessFlags()
public void setDescriptor(java.lang.String descriptor)
public java.lang.String getDescriptor()
public boolean isStatic()
public boolean isPrivate()
public boolean isTransient()
isTransient
in class JField
public JType getGenericType()
getGenericType
in class JField
public 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 boolean equals(java.lang.Object o)
JField