net.sourceforge.jane.lang.reflection
Class ReflectionFieldInfo

java.lang.Object
  |
  +--net.sourceforge.jane.lang.reflection.ElementBase
        |
        +--net.sourceforge.jane.lang.reflection.MemberElementBase
              |
              +--net.sourceforge.jane.lang.reflection.ReflectionFieldInfo
All Implemented Interfaces:
FieldInfo, JavaElement

public class ReflectionFieldInfo
extends net.sourceforge.jane.lang.reflection.MemberElementBase
implements FieldInfo

A FieldInfo that uses java.lang.reflect.Field.

Author:
Calvin Yu

Constructor Summary
ReflectionFieldInfo(java.lang.reflect.Field aField)
          Create a new ReflectionFieldInfo.
 
Method Summary
protected  java.lang.reflect.Member getMember()
          Returns the member.
protected  int getModifiers()
          Returns the modifiers.
 java.lang.String getName()
          Returns the name of the element.
 ClassInfo getType()
          Returns the type field.
 boolean isAbstract()
          Returns true if this element is abstract.
 boolean isFinal()
          Returns true if this element is final.
 boolean isPackageProtected()
          Returns true if this element is package protected.
 boolean isPrivate()
          Returns true if this element is private.
 boolean isProtected()
          Returns true if this element is protected.
 boolean isPublic()
          Returns true if this element is public.
 boolean isStatic()
          Returns true if this element is static.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.jane.lang.FieldInfo
isFinal, isStatic
 
Methods inherited from interface net.sourceforge.jane.lang.JavaElement
getName, isPackageProtected, isPrivate, isProtected, isPublic
 

Constructor Detail

ReflectionFieldInfo

public ReflectionFieldInfo(java.lang.reflect.Field aField)
Create a new ReflectionFieldInfo.
Method Detail

getType

public ClassInfo getType()
Returns the type field.
Specified by:
getType in interface FieldInfo

getMember

protected java.lang.reflect.Member getMember()
Returns the member.
Overrides:
getMember in class net.sourceforge.jane.lang.reflection.MemberElementBase

getName

public java.lang.String getName()
Returns the name of the element.

getModifiers

protected int getModifiers()
Returns the modifiers.
Overrides:
getModifiers in class net.sourceforge.jane.lang.reflection.ElementBase

isPublic

public boolean isPublic()
Returns true if this element is public.
Specified by:
isPublic in interface JavaElement

isProtected

public boolean isProtected()
Returns true if this element is protected.
Specified by:
isProtected in interface JavaElement

isPackageProtected

public boolean isPackageProtected()
Returns true if this element is package protected.
Specified by:
isPackageProtected in interface JavaElement

isPrivate

public boolean isPrivate()
Returns true if this element is private.
Specified by:
isPrivate in interface JavaElement

isFinal

public boolean isFinal()
Returns true if this element is final.

isAbstract

public boolean isAbstract()
Returns true if this element is abstract.

isStatic

public boolean isStatic()
Returns true if this element is static.


Copyright © 2002-2002 SourceForge. All Rights Reserved.