MetaTF.Parser
Class ASTProperty
java.lang.Object
|
+--MetaTF.Parser.SimpleNode
|
+--MetaTF.Parser.ASTDef
|
+--MetaTF.Parser.ASTProperty
- All Implemented Interfaces:
- Node
- public class ASTProperty
- extends ASTDef
Abstract syntax tree node representing properties
- 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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTProperty
public ASTProperty(int id)
ASTProperty
public ASTProperty(MetaTFParser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(MetaTFParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Overrides:
jjtAccept
in class ASTDef
hasType
public void hasType(boolean b)
- Returns:
- whether the property was given a type in the DTD
getTypeName
public java.lang.String getTypeName()
- Returns:
- the type of the property (or empty string if none given)
getFieldName
public java.lang.String getFieldName()
- Returns:
- the name of the field for which this property is defined
getPropertyName
public java.lang.String getPropertyName()
- Returns:
- the name of the property (or empty string if none given)
getPropertyValue
public ASTValue getPropertyValue()
- Returns:
- the value of the property
- See Also:
ASTValue
dump
public void dump(java.lang.String prefix)
- dump the property prettily
- Overrides:
dump
in class SimpleNode
- See Also:
SimpleNode
Copyright © 2001 - Richard Jones MetaTF