MetaTF.Parser
Class ASTRecord
java.lang.Object
|
+--MetaTF.Parser.SimpleNode
|
+--MetaTF.Parser.ASTDef
|
+--MetaTF.Parser.ASTRecord
- All Implemented Interfaces:
- Node
- public class ASTRecord
- extends ASTDef
Abstract syntax tree node representing named records
- Version:
- rel-1-2 ($Revision: 1.2 $, $Date: 2000/12/15 16:29:54 $),
- Author:
- Richard Jones
- See Also:
- The MetaTF Grammar
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 |
ASTRecord
public ASTRecord(int id)
ASTRecord
public ASTRecord(MetaTFParser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(MetaTFParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Overrides:
jjtAccept
in class ASTDef
getRecordName
public java.lang.String getRecordName()
- Returns:
- the name of the record
getRecordField
public Node getRecordField()
- return the record's field
getNumProperties
public int getNumProperties()
- Returns:
- the number of properties defined for this record
getProperty
public Node getProperty(int i)
- Return a property
- Parameters:
i
- the number of a property WHERE 0<=iReturns:- the i'th property
setLine
void setLine(int i)
- Set the lin number. Called by the parser
- Overrides:
setLine
in class ASTDef
- Following copied from class:
MetaTF.Parser.ASTDef
- Parameters:
i
- the line number- Returns:
- void
getLine
int getLine()
- Overrides:
getLine
in class ASTDef
- Returns:
- the line number in the DTD where the record was found
Copyright © 2001 - Richard Jones MetaTF