MetaTF API

MetaTF.Parser
Class ASTTupleField

java.lang.Object
  |
  +--MetaTF.Parser.SimpleNode
        |
        +--MetaTF.Parser.ASTTupleField
All Implemented Interfaces:
Node

public class ASTTupleField
extends SimpleNode

Abstract syntax tree node representing tuple fields

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
ASTTupleField(int id)
           
ASTTupleField(MetaTFParser p, int id)
           
 
Method Summary
 int getArity()
           
 Node getField(int i)
          Get a component of the tuple
 java.lang.Object jjtAccept(MetaTFParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 
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

ASTTupleField

public ASTTupleField(int id)

ASTTupleField

public ASTTupleField(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

getField

public Node getField(int i)
Get a component of the tuple
Parameters:
i - the field required WHERE 0<=iReturns:
the i'th field
See Also:
getArity()

getArity

public int getArity()
Returns:
the number of top-level components of the tuple

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF