net.sourceforge.jane.lang.reflection
Class ReflectionClassInfo

java.lang.Object
  |
  +--net.sourceforge.jane.lang.reflection.ElementBase
        |
        +--net.sourceforge.jane.lang.reflection.ReflectionClassInfo
All Implemented Interfaces:
ClassInfo, JavaElement

public class ReflectionClassInfo
extends net.sourceforge.jane.lang.reflection.ElementBase
implements ClassInfo

A ClassInfo that is based on java.lang.ClassInfo.


Constructor Summary
ReflectionClassInfo(java.lang.Class aClass)
          Create a new ReflectionClassInfo.
 
Method Summary
 Fields getFields()
          Returns the fields.
 Classes getInterfaces()
          Returns the interfaces this class implements.
 Methods getMethods()
          Returns the methods.
protected  int getModifiers()
          Returns the modifiers of this class.
 java.lang.String getName()
          Returns the name of the class.
 java.lang.String getPackageName()
          Returns the package name.
 ClassInfo getSuperClass()
          Returns the super class.
 boolean isAbstract()
          Returns true if this element is abstract.
 boolean isFinal()
          Returns true if this element is final.
 boolean isInterface()
          Returns true if this class is an interface.
 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.ClassInfo
isAbstract, isFinal, isStatic
 
Methods inherited from interface net.sourceforge.jane.lang.JavaElement
isPackageProtected, isPrivate, isProtected, isPublic
 

Constructor Detail

ReflectionClassInfo

public ReflectionClassInfo(java.lang.Class aClass)
Create a new ReflectionClassInfo.
Parameters:
aClass - The class object to retrieve class information from.
Method Detail

getName

public java.lang.String getName()
Returns the name of the class.
Specified by:
getName in interface JavaElement

isInterface

public boolean isInterface()
Returns true if this class is an interface.
Specified by:
isInterface in interface ClassInfo

getSuperClass

public ClassInfo getSuperClass()
Returns the super class.
Specified by:
getSuperClass in interface ClassInfo

getInterfaces

public Classes getInterfaces()
Returns the interfaces this class implements.
Specified by:
getInterfaces in interface ClassInfo

getPackageName

public java.lang.String getPackageName()
Returns the package name.
Specified by:
getPackageName in interface ClassInfo

getMethods

public Methods getMethods()
Returns the methods.
Specified by:
getMethods in interface ClassInfo

getFields

public Fields getFields()
Returns the fields.
Specified by:
getFields in interface ClassInfo

getModifiers

protected int getModifiers()
Returns the modifiers of this class.
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.