org.ow2.util.scan.api.metadata.structures
Class JField
java.lang.Object
org.ow2.util.scan.api.metadata.structures.JField
- All Implemented Interfaces:
- java.io.Serializable
public final class JField
- extends java.lang.Object
- implements java.io.Serializable
This class defines a Field object. It is not based on reflection.
- Author:
- Florent Benoit
- See Also:
- Serialized Form
|
Constructor Summary |
JField(int access,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
java.lang.Object value)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JField
public JField(int access,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
java.lang.Object value)
- Constructor. *
- Parameters:
access - the field's access flags (see
org.ow2.easybeans.asm.Opcodes). This parameter also indicates
if the field is synthetic and/or deprecated.name - the field's name.descriptor - the field's descriptor (see
IType).signature - the field's signature. May be null if the
field's type does not use generic types.value - the field's initial value. This parameter, which may be
null if the field does not have an initial value, must
be an Integer, a Float, a Long, a
Double or a String (for int,
float, long or String fields
respectively). This parameter is only used for static fields.
Its value is ignored for non static fields, which must be
initialized through bytecode instructions in constructors or
methods.
equals
public boolean equals(java.lang.Object obj)
- Indicates whether some other object is "equal to" this one.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - object to compare
- Returns:
- true if given object is equals
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
- Returns:
- a hash code value for the object.
getDescriptor
public java.lang.String getDescriptor()
- Returns:
- field's descriptor.
getValue
public java.lang.Object getValue()
- Returns:
- field's value.
getName
public java.lang.String getName()
- Returns:
- field name
getSignature
public java.lang.String getSignature()
- Returns:
- field signature
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- string representation
getAccess
public int getAccess()
- Returns:
- the field's access flags
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.