MetaTF API

MetaTF.Parser
Class ASTDef

java.lang.Object
  |
  +--MetaTF.Parser.SimpleNode
        |
        +--MetaTF.Parser.ASTDef
All Implemented Interfaces:
Node
Direct Known Subclasses:
ASTProperty, ASTRecord

public class ASTDef
extends SimpleNode

Abstract syntax tree abstract node representing definitions (records and properties)

Version:
rel-1-2 ($Revision: 1.3 $, $Date: 2000/12/15 16:29:54 $),
Author:
Richard Jones
See Also:
The MetaTF Grammar

Fields inherited from class MetaTF.Parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTDef(int id)
           
ASTDef(MetaTFParser p, int id)
           
 
Method Summary
(package private)  int getLine()
           
 java.lang.Object jjtAccept(MetaTFParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
(package private)  void setLine(int i)
          Called by the parser to set the line number of the start of this definition
 
Methods inherited from class MetaTF.Parser.SimpleNode
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTDef

public ASTDef(int id)

ASTDef

public ASTDef(MetaTFParser p,
              int id)
Method Detail

jjtAccept

public java.lang.Object jjtAccept(MetaTFParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.
Overrides:
jjtAccept in class SimpleNode

setLine

void setLine(int i)
Called by the parser to set the line number of the start of this definition
Parameters:
i - the line number
Returns:
void

getLine

int getLine()
Returns:
the number of the line that this definition starts on

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF