alt.jiapi.reflect
Class JiapiField

java.lang.Object
  extended by alt.jiapi.reflect.JiapiField

public class JiapiField
extends java.lang.Object

This class represents a Field.

Version:
$Revision: 1.22 $ $Date: 2010/04/29 05:54:57 $
Author:
Mika Riekkinen, Joni Suominen

Constructor Summary
JiapiField(Field f)
           
 
Method Summary
 JiapiAnnotation[] getDeclaredAnnotations()
          Get all the declared annotations of this field.
 JiapiClass getDeclaringClass()
          Gets the JiapiClass, that declares this JiapiField.
 int getModifiers()
          Get the modifiers of this field.
 java.lang.String getName()
          Get the name of this field.
 JiapiClass getType()
          Get the type of this field.
 java.lang.String getTypeName()
          Get the type of this field.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JiapiField

public JiapiField(Field f)
Method Detail

getDeclaredAnnotations

public JiapiAnnotation[] getDeclaredAnnotations()
Get all the declared annotations of this field. This method gets both visible and invisible annotations of this field. That is, both RuntimeVisibleAnnotations and RuntimeInvisibleAnnotations annotation attributes are included.

Returns:
declared annotations

getDeclaringClass

public JiapiClass getDeclaringClass()
Gets the JiapiClass, that declares this JiapiField.

Returns:
Declaring class, or null if one has not been assigned to this JiapiField

getModifiers

public int getModifiers()
Get the modifiers of this field.

See Also:
Modifier

getName

public java.lang.String getName()
Get the name of this field.

Returns:
Name of this field

getType

public JiapiClass getType()
                   throws java.lang.ClassNotFoundException
Get the type of this field. This involves loading of the the type through the same loader that was used to load the declaring class.

Returns:
a JiapiClass which represents a type of this field
Throws:
java.lang.ClassNotFoundException - is thrown, if JiapiClass could not be loaded
See Also:
getTypeName()

getTypeName

public java.lang.String getTypeName()
Get the type of this field.

Returns:
a String which represents a type of this field

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001. Documenation generated August 26 2011.