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


Field Summary
protected  edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes
           
protected  Preamble preamble
           
 
Constructor Summary
ClassGraph()
           
ClassGraph(Preamble preamble, edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes)
           
 
Method Summary
 void __trav_convertRepetition(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_convertRepetition __v0)
           
 void __trav_expandParamDefs(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_expandParamDefs __v0)
           
 void __trav_removeParamDefs(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_removeParamDefs __v0)
           
 void __trav_setBackLinks(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_setBackLinks __v0)
           
 void __trav_setInheritanceLinks(edu.neu.ccs.demeter.aplib.cd.__V_ClassGraph_setInheritanceLinks __v0)
           
 Subclass addAlternationEdge(String source, String target)
           
 Part addConstructionEdge(String source, String name, String target)
           
 EdgeI addEdge(EdgeI edge)
           
 EdgeI addInheritanceEdge(String source, String target)
           
 void allClassDefs(ClassDefVisitor v)
           
 void allParts(PartVisitor v)
           
 boolean definesClass(String name)
           
static ClassGraph fromString(String s)
           
 edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList get_classes()
           
 Preamble get_preamble()
           
 Collection getIncomingEdges(Object v)
          A List of edges (EdgeI objects) coming into node v.
 Object getNode(String l)
          The node labeled l in the class graph.
 Collection getNodes()
          A collection of nodes in the class graph.
 Collection getOutgoingEdges(Object v)
          A collection of edges (EdgeI objects) going out of node v.
 ClassGraph normalize()
           
static ClassGraph parse(InputStream in)
           
static ClassGraph parse(Reader in)
           
static ClassGraph parse(String s)
           
 void printTraversalEdges(Traversal t, PrintWriter out)
           
static ClassGraph readFrom(InputStream in)
           
static ClassGraph readFrom(Reader in)
           
 void set_classes(edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList new_classes)
           
 void set_preamble(Preamble new_preamble)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

preamble

protected Preamble preamble

classes

protected edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes
Constructor Detail

ClassGraph

public ClassGraph()

ClassGraph

public ClassGraph(Preamble preamble,
                  edu.neu.ccs.demeter.aplib.cd.ClassGraphEntry_SList classes)
Method Detail

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)