com.bm.ejb3metadata.annotations
Class JField

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.JField

public class JField
extends java.lang.Object

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

Author:
Florent Benoit

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()
          the field's access flags.
 java.lang.String getDescriptor()
          field's descriptor.
 java.lang.String getName()
          method name.
 java.lang.String getSignature()
          method signature.
 java.lang.Object getValue()
          field's value.
 int hashCode()
          a hash code value for the object.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 org.ejb3unit.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 org.ejb3unit.asm.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()
a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object.

getDescriptor

public java.lang.String getDescriptor()
field's descriptor.

Returns:
field's descriptor.

getValue

public java.lang.Object getValue()
field's value.

Returns:
field's value.

getName

public java.lang.String getName()
method name.

Returns:
method name

getSignature

public java.lang.String getSignature()
method signature.

Returns:
method signature

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getAccess

public int getAccess()
the field's access flags.

Returns:
the field's access flags


Copyright © 2008. All Rights Reserved.