|
|||||||||
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
public class 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 |
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 |
addParentInterface(Interface parent)
Add a parent interface to this class. |
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 |
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 |
setParentClass(Class parent)
|
Methods inherited from class gov.llnl.babel.symbols.Symbol |
---|
addMetadata, compareTo, getComment, getFullName, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, isPackage, 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 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 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 boolean hasParentClass(SymbolID id, boolean all)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |