com.sun.tools.txw2.model
Class Value

java.lang.Object
  extended by com.sun.tools.txw2.model.Leaf
      extended by com.sun.tools.txw2.model.Value
All Implemented Interfaces:
Text, org.kohsuke.rngom.ast.om.ParsedPattern

public class Value
extends Leaf
implements Text

A constant value.

Author:
Kohsuke Kawaguchi

Field Summary
 String name
          Constant name.
 com.sun.codemodel.JType type
          The underlying datatype, in case we need to revert to Data.
 
Fields inherited from class com.sun.tools.txw2.model.Leaf
location
 
Constructor Summary
Value(Locator location, com.sun.codemodel.JType type, String name)
           
 
Method Summary
 com.sun.codemodel.JType getDatatype(NodeSet nset)
          Obtains the Java class of this Text.
 
Methods inherited from class com.sun.tools.txw2.model.Leaf
createDataMethod, getNext, getPrev, merge, siblings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final com.sun.codemodel.JType type
The underlying datatype, in case we need to revert to Data.


name

public final String name
Constant name.

Constructor Detail

Value

public Value(Locator location,
             com.sun.codemodel.JType type,
             String name)
Method Detail

getDatatype

public com.sun.codemodel.JType getDatatype(NodeSet nset)
Description copied from interface: Text
Obtains the Java class of this Text.

Specified by:
getDatatype in interface Text


Copyright © 2013 Oracle. All Rights Reserved.