gov.llnl.babel.symbols
public class Interface extends Extendable
Interface
defines a sidl interface. All the
basic functionality for this class is implemented by the parent
extendable class.Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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).
|
addInvAssertion, addMethod, addParentData, addRenamedMethod, freeze, getAbstractAndLocalMethods, getAbstractMethods, getAllInvAssertions, getAllParentsInOrder, getAllPostAssertions, getAllPreAssertions, getAllSymbolReferences, getBasicArrayRefs, getInvClause, getInvClause, getInvDefaultComplexity, getMethods, getMethodsWithNonblocking, getNewMethod, getNewMethods, getNonstaticMethods, getNumberOfMethods, getObjectDependencies, getOverloadedMethodsByName, getParentInterface, getParentInterfaces, getParents, getRenamedMethod, getRenamedMethods, getRenamedMethodSymbolID, getStaticMethods, getSymbolReferences, getTotalContractAssertions, getTotalInvAssertions, getTotalPostAssertions, getTotalPreAssertions, hasAncestor, hasBuiltinMethodAssertion, hasContracts, hasExceptionThrowingMethod, hasInvClause, hasMethodByLongName, hasMethodByShortName, hasParentInterface, hasParentInterfaces, hasPostconditions, hasPreconditions, invHasMethodCall, invHasResultOrArg, isLocal, lookupMethodByLongName, lookupMethodByShortName, methodWasRenamed, validateContracts, validateInvClause, validatePostClause, validatePostClause, validatePostClause, validatePreClause, validatePreClause, validatePreClause
addMetadata, getAttribute, getAttributes, getComment, getMetadata, getSymbolID, getSymbolType, getSymbolTypeString, getUserSpecified, hasAttribute, isClass, isPackage, isStruct, minimumDepth, removeAttribute, setAttribute, setAttribute, setComment, setUserSpecified
compareTo, equals, fromXML, getFullName, getShortName, getShortName, getSymbolName, getVersion, hashCode, isSymbolBindC, setFromXML
checkFrozen, clone, protectCollection, protectList, protectMap, protectSet
public Interface(SymbolID id, Comment comment, Context context)
Interface
object that will be constructed
by calls to other member functions.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