|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Predicate
The predicate for the visit pattern on Clef AST nodes.
$Id: Predicate.java,v 1.36 2005-02-07 21:27:48 burrill Exp $
Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
A traversal predicate has a method per instantiable subclass of a Clef node. Each method represents an action to be done when visiting a node of that type during a traversal of a program representation. Predicates allow logically related code to be grouped together (in an implementation of the predicate).
Node.visit(scale.clef.Predicate),
DeclPredicate,
TypePredicate,
StmtPredicate,
ExprPredicate| Method Summary | |
|---|---|
void |
visitNode(Node n)
|
| Method Detail |
|---|
void visitNode(Node n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||