edu.neu.ccs.demeter.aplib.cd
Class ClassGraph
java.lang.Object
|
+--edu.neu.ccs.demeter.aplib.cd.ClassGraph
- All Implemented Interfaces:
- ClassGraphI
- Direct Known Subclasses:
- ClassGraph
- public class ClassGraph
- extends Object
- implements ClassGraphI
preamble
protected Preamble preamble
classes
protected edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes
ClassGraph
public ClassGraph()
ClassGraph
public ClassGraph(Preamble preamble,
edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes)
get_preamble
public Preamble get_preamble()
set_preamble
public void set_preamble(Preamble new_preamble)
get_classes
public edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList get_classes()
set_classes
public void set_classes(edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList new_classes)
parse
public static ClassGraph parse(Reader in)
throws ParseException
ParseException
parse
public static ClassGraph parse(InputStream in)
throws ParseException
ParseException
parse
public static ClassGraph parse(String s)
readFrom
public static ClassGraph readFrom(Reader in)
throws ParseException
ParseException
readFrom
public static ClassGraph readFrom(InputStream in)
throws ParseException
ParseException
fromString
public static ClassGraph fromString(String s)
normalize
public ClassGraph normalize()
addConstructionEdge
public Part addConstructionEdge(String source,
String name,
String target)
addAlternationEdge
public Subclass addAlternationEdge(String source,
String target)
addInheritanceEdge
public EdgeI addInheritanceEdge(String source,
String target)
addEdge
public EdgeI addEdge(EdgeI edge)
printTraversalEdges
public void printTraversalEdges(Traversal t,
PrintWriter out)
getNodes
public Collection getNodes()
- Description copied from interface:
ClassGraphI
- A collection of nodes in the class graph.
- Specified by:
getNodes in interface ClassGraphI
getNode
public Object getNode(String l)
throws NoSuchClassGraphNodeException
- Description copied from interface:
ClassGraphI
- The node labeled l in the class graph.
- Specified by:
getNode in interface ClassGraphI
NoSuchClassGraphNodeException
getOutgoingEdges
public Collection getOutgoingEdges(Object v)
throws NoSuchClassGraphNodeException
- Description copied from interface:
ClassGraphI
- A collection of edges (EdgeI objects) going out of node v. Return an
empty collection if there are no outgoing edges.
- Specified by:
getOutgoingEdges in interface ClassGraphI
NoSuchClassGraphNodeException
getIncomingEdges
public Collection getIncomingEdges(Object v)
throws NoSuchClassGraphNodeException
- Description copied from interface:
ClassGraphI
- A List of edges (EdgeI objects) coming into node v. Return an
empty list if there are no incoming edges.
- Specified by:
getIncomingEdges in interface ClassGraphI
NoSuchClassGraphNodeException
definesClass
public boolean definesClass(String name)
toString
public String toString()
- Overrides:
toString in class Object
allClassDefs
public void allClassDefs(ClassDefVisitor v)
allParts
public void allParts(PartVisitor v)
__trav_expandParamDefs
public void __trav_expandParamDefs(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_expandParamDefs __v0)
__trav_removeParamDefs
public void __trav_removeParamDefs(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_removeParamDefs __v0)
__trav_convertRepetition
public void __trav_convertRepetition(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_convertRepetition __v0)
__trav_setInheritanceLinks
public void __trav_setInheritanceLinks(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_setInheritanceLinks __v0)
__trav_setBackLinks
public void __trav_setBackLinks(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_setBackLinks __v0)