|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.clef.DescendPredicate scale.clef.Display
public class Display
A class which generates information to generate a graph of a Clef tree.
$Id: Display.java,v 1.39 2007-10-04 19:58:02 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Do a visit on the node that you want to be the root and supply an instance of this class as the Predicate. Then use getCommand() to get the commands for daVinci.
Constructor Summary | |
---|---|
Display(DisplayGraph da,
int displayFlags)
Display the Clef AST graphically. |
Method Summary | |
---|---|
void |
visitAssignmentOp(AssignmentOp assign)
|
void |
visitChildren(Node parent)
A routine to visit the children of a node and generate an edge. |
void |
visitDeclaration(Declaration d)
|
void |
visitExpression(Expression exp)
|
void |
visitSubscriptOp(SubscriptOp n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Display(DisplayGraph da, int displayFlags)
da
- the display graph objectdisplayFlags
- specify what should be displayedDisplayNode
Method Detail |
---|
public void visitChildren(Node parent)
visitChildren
in class DescendPredicate
parent
- a clef nodepublic void visitExpression(Expression exp)
visitExpression
in interface ExprPredicate
visitExpression
in class DescendPredicate
public void visitDeclaration(Declaration d)
visitDeclaration
in interface DeclPredicate
visitDeclaration
in class DescendPredicate
public void visitAssignmentOp(AssignmentOp assign)
visitAssignmentOp
in interface ExprPredicate
visitAssignmentOp
in class DescendPredicate
public void visitSubscriptOp(SubscriptOp n)
visitSubscriptOp
in interface ExprPredicate
visitSubscriptOp
in class DescendPredicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |