| 
 | |||||||||
| 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.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, d_context, ENUM, INTERFACE, PACKAGE, s_type, SCOPE, STRUCT | 
| Fields inherited from class gov.llnl.babel.symbols.ASTNode | 
|---|
| d_frozen | 
| Constructor Summary | |
|---|---|
| Class(SymbolID id,
      Comment comment,
      Context context)Create an empty Classobject that will be constructed
 by calls to other member functions. | |
| Class(SymbolID id,
      Comment comment,
      Metadata metadata,
      Context context)Create an empty Classobject 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. | 
|  void | addSplicerContents(java.lang.String location,
                   java.lang.String name,
                   java.lang.String impl)Add the specified contents to the splicer block identified by the location and name. | 
|  void | freeze() | 
|  boolean | getAbstractModifier() | 
|  int | getDepth()Return how many levels of refinement this type is from a basic type. | 
|  Interface | getImplementsAll(SymbolID id) | 
|  java.util.Map | getImplementsAllMap() | 
|  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. | 
|  java.util.List | getSplicerBlocks(java.lang.String location)Return a list of splicer blocks for the specified location. | 
|  java.util.List | getSplicerContents(java.lang.String location,
                   java.lang.String name)Return splicer contents for the specified location and splicer name. | 
|  boolean | hasImplmentsAll(SymbolID id) | 
|  boolean | hasOverwrittenMethods() | 
|  boolean | hasParentClass(SymbolID id,
               boolean all)Return whether this class has the specified parent class. | 
|  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, 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 Class(SymbolID id,
             Comment comment,
             Context context)
Class object that will be constructed
 by calls to other member functions.
public Class(SymbolID id,
             Comment comment,
             Metadata metadata,
             Context context)
Class object that will be constructed
 by calls to other member functions.
| Method Detail | 
|---|
public boolean isAbstract()
isAbstract in class Extendablepublic void setAbstractModifier(boolean abs)
public boolean getAbstractModifier()
public boolean isInterface()
isInterface in class Extendablepublic boolean hasStaticMethod(boolean all)
hasStaticMethod in class Extendableall - 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 getImplementsAllMap()
public Interface getImplementsAll(SymbolID id)
public java.util.Collection getOverwrittenClassMethods()
public boolean hasOverwrittenMethods()
public void addParentInterface(Interface parent)
addParentInterface in class Extendableparent - 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 Extendableall - 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)
public void addSplicerContents(java.lang.String location,
                               java.lang.String name,
                               java.lang.String impl)
public java.util.List getSplicerContents(java.lang.String location,
                                         java.lang.String name)
public java.util.List getSplicerBlocks(java.lang.String location)
public void freeze()
freeze in class Extendable| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||