addImplementsAll
public void addImplementsAll(Interface iface)
This only adds the interface to the Implmenets-all map, it
does not actually implement the methods inside. This must be done
manually.
iface
- The Interface itself
addParentInterface
public void addParentInterface(Interface parent)
Add a parent interface to this class. This method does not check
that the interfaces and methods are compatible; it simply copies the
methods and interface parents and adds them to this interface.
- addParentInterface in interface Extendable
addSplicerContents
public void addSplicerContents(String location,
String name,
String impl)
Add the specified contents to the splicer block identified by the
location and name.
getAbstractModifier
public boolean getAbstractModifier()
getDepth
public int getDepth()
Return how many levels of refinement this type is from a basic type.
For enumerations and packages, this returns zero. For classes,
it returns the distance from sidl.BaseClass. For interfaces, it
returns the distance from sidl.BaseInterface.
- getDepth in interface Symbol
getImplementsAllMap
public Map getImplementsAllMap()
getOverwrittenClassMethods
public Collection getOverwrittenClassMethods()
This function returns all the methods that were defined in a parent
class, and have been redefined locally. It will not return methods
that were abstract in the parent class, or methods that were inherited
from an interface.
getParentClass
public Class getParentClass()
getParents
public Collection getParents(boolean all)
Return the parent interfaces and parent class (if any) in a
Collection
.
- getParents in interface Extendable
getSplicerBlocks
public List getSplicerBlocks(String location)
Return a list of splicer blocks for the specified location.
getSplicerContents
public List getSplicerContents(String location,
String name)
Return splicer contents for the specified location and splicer name.
hasImplmentsAll
public boolean hasImplmentsAll(SymbolID id)
hasOverwrittenMethods
public boolean hasOverwrittenMethods()
hasParentClass
public boolean hasParentClass(SymbolID id,
boolean all)
Return whether this class has the specified parent class. If the
boolean argument is true, then recursively search the inheritance
hierarchy.
hasStaticMethod
public boolean hasStaticMethod(boolean all)
Return whether this class has any static methods. If the flag
is true, then determines from all locally defined and parent methods.
- hasStaticMethod in interface Extendable
isAbstract
public boolean isAbstract()
Return whether this class is abstract. A class is abstract if
and only if it has one or more abstract methods.
- isAbstract in interface Extendable
isInterface
public boolean isInterface()
Return whether this object represents an interface (false).
- isInterface in interface Extendable
setAbstractModifier
public void setAbstractModifier(boolean abs)
setParentClass
public void setParentClass(Class parent)