MetaTF.Parser
Class ASTSection
java.lang.Object
|
+--MetaTF.Parser.SimpleNode
|
+--MetaTF.Parser.ASTSection
- All Implemented Interfaces:
- Node
- public class ASTSection
- extends SimpleNode
Abstract syntax tree node representing sections
- Version:
- rel-1-2 ($Revision: 1.3 $, $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 |
ASTSection
public ASTSection(int id)
ASTSection
public ASTSection(MetaTFParser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(MetaTFParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Overrides:
jjtAccept
in class SimpleNode
getNumPropertiesRecords
public int getNumPropertiesRecords()
- Returns:
- the number of properties or records defined in this section
getPropertyOrRecord
public Node getPropertyOrRecord(int i)
- Get a property or record
- Parameters:
i
- the number of the property or record WHERE 0<=iReturns:- the i'th field
- See Also:
getNumPropertiesRecords()
getSectionName
java.lang.String getSectionName()
- Returns:
- the name of the section
getSectionNumber
int getSectionNumber()
- Returns:
- the number of the section
setCached
void setCached(boolean b)
- Set whether the section is cached. Called by the parser
isCached
boolean isCached()
- return whether the section is cached
setLine
void setLine(int i)
- Set the line number in the DTD where the section started
getLine
int getLine()
- Returns:
- the line number in the DTD where the section started
Copyright © 2001 - Richard Jones MetaTF