|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.symbols.ASTNode
gov.llnl.babel.symbols.Symbol
gov.llnl.babel.symbols.Extendable
gov.llnl.babel.symbols.Class
Class Class
defines a sidl class. Most of the basic
functionality for this class is implemented by Extendable
.
This class adds the capability to be extended by a parent class.
Field Summary |
Fields inherited from class gov.llnl.babel.symbols.Symbol |
CLASS, ENUM, INTERFACE, PACKAGE, s_type, SCOPE, STRUCT |
Constructor Summary | |
Class(SymbolID id,
Comment comment)
Create an empty Class object that will be constructed
by calls to other member functions. |
|
Class(SymbolID id,
Comment comment,
Metadata metadata)
Create an empty Class object that will be constructed
by calls to other member functions. |
Method Summary | |
void |
addImplementsAll(Interface iface)
This only adds the interface to the Implmenets-all map, it does not actually implement the methods inside. |
void |
addParentInterface(Interface parent)
Add a parent interface to this class. |
boolean |
getAbstractModifier()
|
int |
getDepth()
Return how many levels of refinement this type is from a basic type. |
Interface |
getImplementsAll(SymbolID id)
|
java.util.Map |
getImplmentsAllMap()
|
java.util.Collection |
getOverwrittenClassMethods()
This function returns all the methods that were defined in a parent class, and have been redefined locally. |
Class |
getParentClass()
|
java.util.Collection |
getParents(boolean all)
Return the parent interfaces and parent class (if any) in a Collection . |
boolean |
hasImplmentsAll(SymbolID id)
|
boolean |
hasOverwrittenMethods()
|
boolean |
hasParentClass(SymbolID id,
boolean all)
|
boolean |
hasStaticMethod(boolean all)
Return whether this class has any static methods. |
boolean |
isAbstract()
Return whether this class is abstract. |
boolean |
isInterface()
Return whether this object represents an interface (false). |
void |
setAbstractModifier(boolean abs)
|
void |
setParentClass(Class parent)
|
Methods inherited from class gov.llnl.babel.symbols.Symbol |
addMetadata, compareTo, getAttribute, getAttributes, getComment, getFullName, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, hasAttribute, isPackage, minimumDepth, removeAttribute, setAttribute, setAttribute, setComment, setUserSpecified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Class(SymbolID id, Comment comment)
Class
object that will be constructed
by calls to other member functions.
public Class(SymbolID id, Comment comment, Metadata metadata)
Class
object that will be constructed
by calls to other member functions.
Method Detail |
public boolean isAbstract()
isAbstract
in class Extendable
public void setAbstractModifier(boolean abs)
public boolean getAbstractModifier()
public boolean isInterface()
isInterface
in class Extendable
public boolean hasStaticMethod(boolean all)
hasStaticMethod
in class Extendable
all
- If TRUE, then local and parent methods are to be searched;
otherwise, only local methods are to be searched.public void addImplementsAll(Interface iface)
iface
- The Interface itselfpublic boolean hasImplmentsAll(SymbolID id)
public java.util.Map getImplmentsAllMap()
public Interface getImplementsAll(SymbolID id)
public java.util.Collection getOverwrittenClassMethods()
public boolean hasOverwrittenMethods()
public void addParentInterface(Interface parent)
addParentInterface
in class Extendable
parent
- The parent interface to be added to this object.public void setParentClass(Class parent)
public Class getParentClass()
public java.util.Collection getParents(boolean all)
Collection
.
getParents
in class Extendable
all
- If TRUE, all ancestors are to be returned; otherwise, only
direct parents.public int getDepth()
Symbol
getDepth
in class Symbol
public boolean hasParentClass(SymbolID id, boolean all)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |