MetaTF API

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

Fields inherited from class MetaTF.Parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTProperty(int id)
           
ASTProperty(MetaTFParser p, int id)
           
 
Method Summary
 void dump(java.lang.String prefix)
          dump the property prettily
 java.lang.String getFieldName()
           
 java.lang.String getPropertyName()
           
 ASTValue getPropertyValue()
           
 java.lang.String getTypeName()
           
 void hasType(boolean b)
           
 java.lang.Object jjtAccept(MetaTFParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 
Methods inherited from class MetaTF.Parser.ASTDef
getLine, setLine
 
Methods inherited from class MetaTF.Parser.SimpleNode
childrenAccept, 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

ASTProperty

public ASTProperty(int id)

ASTProperty

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

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF