Class Value

  • All Implemented Interfaces:
    Text, ParsedPattern

    public class Value
    extends Leaf
    implements Text
    A constant value.
    Author:
    Kohsuke Kawaguchi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name
      Constant name.
      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

      Constructors 
      Constructor Description
      Value​(org.xml.sax.Locator location, JType type, java.lang.String name)  
    • Field Detail

      • type

        public final JType type
        The underlying datatype, in case we need to revert to Data.
      • name

        public final java.lang.String name
        Constant name.
    • Constructor Detail

      • Value

        public Value​(org.xml.sax.Locator location,
                     JType type,
                     java.lang.String name)
    • Method Detail

      • getDatatype

        public JType getDatatype​(NodeSet nset)
        Description copied from interface: Text
        Obtains the Java class of this Text.
        Specified by:
        getDatatype in interface Text