net.sourceforge.jane.lang
Class LazyClassInfo

java.lang.Object
  |
  +--net.sourceforge.jane.lang.AbstractClassInfo
        |
        +--net.sourceforge.jane.lang.LazyClassInfo
All Implemented Interfaces:
ClassInfo, JavaElement
Direct Known Subclasses:
JJTreeLazyClassInfo, QDoxLazyClassInfo

public abstract class LazyClassInfo
extends AbstractClassInfo

A ClassInfo object that lazily loads the actual info a request time. Subclasses will use this by implementing the loadDelegate() method to load the actual delegate.


Field Summary
protected  ClassInfo delegate
           
 
Fields inherited from class net.sourceforge.jane.lang.AbstractClassInfo
jane
 
Constructor Summary
LazyClassInfo(Jane aJane)
          Create a new LazyClassInfo.
 
Method Summary
protected  ClassInfo getDelegate()
          Returns the delegate.
 Fields getFields()
          Returns the fields.
 Classes getInterfaces()
          Returns the interfaces this class implements.
 Methods getMethods()
          Returns the methods.
 java.lang.String getName()
          Returns the name of the element.
 java.lang.String getPackageName()
          Returns the package name.
 ClassInfo getSuperClass()
          Returns the super class.
 boolean isAbstract()
          Returns true if this class is abstract.
 boolean isFinal()
          Returns true if this class 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 class is static.
protected abstract  ClassInfo loadDelegate()
          Load the delegate ClassInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected ClassInfo delegate
Constructor Detail

LazyClassInfo

public LazyClassInfo(Jane aJane)
Create a new LazyClassInfo.
Method Detail

getName

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

isPublic

public boolean isPublic()
Returns true if this element is public.

isProtected

public boolean isProtected()
Returns true if this element is protected.

isPackageProtected

public boolean isPackageProtected()
Returns true if this element is package protected.

isPrivate

public boolean isPrivate()
Returns true if this element is private.

isInterface

public boolean isInterface()
Returns true if this class is an interface.

getSuperClass

public ClassInfo getSuperClass()
Returns the super class.

getInterfaces

public Classes getInterfaces()
Returns the interfaces this class implements.

getPackageName

public java.lang.String getPackageName()
Returns the package name.

getMethods

public Methods getMethods()
Returns the methods.

getFields

public Fields getFields()
Returns the fields.

isAbstract

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

isFinal

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

isStatic

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

loadDelegate

protected abstract ClassInfo loadDelegate()
Load the delegate ClassInfo.

getDelegate

protected ClassInfo getDelegate()
Returns the delegate.


Copyright © 2002-2002 SourceForge. All Rights Reserved.