|
|||||||||
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.SymbolID
gov.llnl.babel.symbols.Symbol
gov.llnl.babel.symbols.Extendable
gov.llnl.babel.symbols.Interface
public class Interface
Class Interface
defines a sidl interface. All the
basic functionality for this class is implemented by the parent
extendable class.
Field Summary |
---|
Fields inherited from class gov.llnl.babel.symbols.Symbol |
---|
CLASS, d_context, ENUM, INTERFACE, PACKAGE, s_type, SCOPE, STRUCT |
Fields inherited from class gov.llnl.babel.symbols.ASTNode |
---|
d_frozen |
Constructor Summary | |
---|---|
Interface(SymbolID id,
Comment comment,
Context context)
Create an empty Interface object that will be constructed
by calls to other member functions. |
|
Interface(SymbolID id,
Comment comment,
Metadata metadata,
Context context)
Create an empty Interface object that will be constructed
by calls to other member functions. |
Method Summary | |
---|---|
void |
addParentInterface(Interface parent)
Add a parent interface to this interface. |
Class |
generateAnonymousClass()
generateAnonymousClass generates the anonymous class for this Interface. |
int |
getDepth()
Return how many levels of refinement this type is from a basic type. |
boolean |
hasStaticMethod(boolean all)
Return whether this interface has any static methods (always false). |
boolean |
isAbstract()
Return whether this interface is abstract. |
boolean |
isInterface()
Return whether this object represents an interface (true). |
Methods inherited from class gov.llnl.babel.symbols.Symbol |
---|
addMetadata, getAttribute, getAttributes, getComment, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, hasAttribute, isClass, isPackage, isStruct, minimumDepth, removeAttribute, setAttribute, setAttribute, setComment, setUserSpecified |
Methods inherited from class gov.llnl.babel.symbols.SymbolID |
---|
compareTo, equals, fromXML, getFullName, getShortName, getShortName, getSymbolName, getVersion, hashCode, setFromXML |
Methods inherited from class gov.llnl.babel.symbols.ASTNode |
---|
checkFrozen, clone, protectCollection, protectList, protectMap, protectSet |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public Interface(SymbolID id, Comment comment, Context context)
Interface
object that will be constructed
by calls to other member functions.
public Interface(SymbolID id, Comment comment, Metadata metadata, Context context)
Interface
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 void addParentInterface(Interface parent)
addParentInterface
in class Extendable
parent
- The parent interface to be added to this object.public Class generateAnonymousClass() throws CodeGenerationException
CodeGenerationException
public int getDepth()
Symbol
getDepth
in class Symbol
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |