org.ow2.util.scan.api.metadata.structures
Class JField
java.lang.Object
org.ow2.util.scan.api.metadata.structures.JField
- All Implemented Interfaces:
- Serializable
public final class JField
- extends Object
- implements Serializable
This class defines a Field object. It is not based on reflection.
- Author:
- Florent Benoit
- See Also:
- Serialized Form
JField
public JField(int access,
String name,
String descriptor,
String signature,
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(Object obj)
- Indicates whether some other object is "equal to" this one.
- Overrides:
equals in class Object
- Parameters:
obj - object to compare
- Returns:
- true if given object is equals
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
- Returns:
- a hash code value for the object.
getDescriptor
public String getDescriptor()
- Returns:
- field's descriptor.
getValue
public Object getValue()
- Returns:
- field's value.
getName
public String getName()
- Returns:
- field name
getSignature
public String getSignature()
- Returns:
- field signature
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- string representation
getAccess
public int getAccess()
- Returns:
- the field's access flags
Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.