MetaTF API

MetaTF.Parser
Class NumberValue

java.lang.Object
  |
  +--MetaTF.Parser.Value
        |
        +--MetaTF.Parser.NumberValue

public class NumberValue
extends Value

Numeric value of a tag

Version:
rel-1-2 ($Revision: 1.3 $, $Date: 2000/12/15 16:29:55 $),
Author:
Richard Jones
See Also:
The MetaTF Grammar, Value

Constructor Summary
(package private) NumberValue(int n)
          Allocate a new object representing this number
 
Method Summary
 java.lang.Object accept(DTDVisitor visitor, java.lang.Object data)
          Accept the visitor
 java.lang.String dump(java.lang.String prefix)
           
 int getNumber()
           
(package private)  void setNumber(int n)
          Set the number
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberValue

NumberValue(int n)
Allocate a new object representing this number
Parameters:
n - the value
Method Detail

getNumber

public int getNumber()
Returns:
the number

setNumber

void setNumber(int n)
Set the number
Parameters:
value - the number

toString

public java.lang.String toString()
Overrides:
toString in class Value
Following copied from class: MetaTF.Parser.Value
Returns:
a string representation of this object

dump

public java.lang.String dump(java.lang.String prefix)
Overrides:
dump in class Value
Following copied from class: MetaTF.Parser.Value
Returns:
a prettified representation of this object

accept

public java.lang.Object accept(DTDVisitor visitor,
                               java.lang.Object data)
Description copied from class: Value
Accept the visitor
Overrides:
accept in class Value

MetaTF API

Copyright © 2001 - Richard Jones     MetaTF