org.objectweb.easybeans.deployment.annotations
Class JField

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.JField

public class JField
extends java.lang.Object

This class defines a Field object. It is not based on reflection.

Author:
Florent Benoit

Field Summary
private  int access
          Access mode (see Opcodes).
private  java.lang.String descriptor
          Field's descriptor.
private  java.lang.String name
          Name of the field.
private  java.lang.String signature
          Field's signature.
private  java.lang.Object value
          Value of the field.
 
Constructor Summary
JField(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.Object value)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getAccess()
           
 java.lang.String getDescriptor()
           
 java.lang.String getName()
           
 java.lang.String getSignature()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of the field.


access

private int access
Access mode (see Opcodes).


descriptor

private java.lang.String descriptor
Field's descriptor.


signature

private java.lang.String signature
Field's signature.


value

private java.lang.Object value
Value of the field.

Constructor Detail

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 Opcodes). This parameter also indicates if the field is synthetic and/or deprecated.
name - the field's name.
descriptor - the field's descriptor (see Type).
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.
Method Detail

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:
method name

getSignature

public java.lang.String getSignature()
Returns:
method 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