MetaTF API

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

Fields inherited from class MetaTF.Parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTSection(int id)
           
ASTSection(MetaTFParser p, int id)
           
 
Method Summary
(package private)  int getLine()
           
 int getNumPropertiesRecords()
           
 Node getPropertyOrRecord(int i)
          Get a property or record
(package private)  java.lang.String getSectionName()
           
(package private)  int getSectionNumber()
           
(package private)  boolean isCached()
          return whether the section is cached
 java.lang.Object jjtAccept(MetaTFParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
(package private)  void setCached(boolean b)
          Set whether the section is cached.
(package private)  void setLine(int i)
          Set the line number in the DTD where the section started
 
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

ASTSection

public ASTSection(int id)

ASTSection

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

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

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF