MetaTF.Parser
Class ASTNamedField
java.lang.Object
|
+--MetaTF.Parser.SimpleNode
|
+--MetaTF.Parser.ASTNamedField
- All Implemented Interfaces:
- Node
- public class ASTNamedField
- extends SimpleNode
Abstract syntax tree node representing named fields
- Version:
- rel-1-2 ($Revision: 1.3 $, $Date: 2000/12/15 16:29:54 $),
- Author:
- Richard Jones
- See Also:
- The MetaTF Grammar
Method Summary |
(package private) int |
getLine()
|
java.lang.String |
getName()
|
java.lang.Object |
jjtAccept(MetaTFParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
(package private) void |
setLine(int l)
Set the line number where the name was found |
void |
setName(java.lang.String s)
Set the name. |
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 |
ASTNamedField
public ASTNamedField(int id)
ASTNamedField
public ASTNamedField(MetaTFParser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(MetaTFParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Overrides:
jjtAccept
in class SimpleNode
setName
public void setName(java.lang.String s)
- Set the name. Called by the parser
- Parameters:
s
- the name
getName
public java.lang.String getName()
- Returns:
- the name of the field
setLine
void setLine(int l)
- Set the line number where the name was found
- Parameters:
l
- the line
getLine
int getLine()
- Returns:
- the number of the line in the DTD where the name was found
Copyright © 2001 - Richard Jones MetaTF