net.sourceforge.jparam.parser
Class SimpleLeaf

java.lang.Object
  |
  +--net.sourceforge.jparam.parser.SimpleLeaf
All Implemented Interfaces:
TreeNode

public class SimpleLeaf
extends java.lang.Object
implements TreeNode

A description of class TreeNode


Inner Class Summary
(package private)  class SimpleLeaf.StringWithPos
           
 
Field Summary
static int CHAR
           
static int DECODED_STRING
           
static int STRING
           
static int TENTATIVE
           
 
Constructor Summary
SimpleLeaf(java.lang.String value, int type)
          Create a new TreeNode object.
 
Method Summary
(package private)  char decode_char(java.lang.String str)
           
(package private)  char decode_next_char(SimpleLeaf.StringWithPos swp)
           
(package private)  java.lang.String decode_string(java.lang.String str)
           
 java.lang.Object getConstructedValue(java.lang.Class expectedType)
           
 ScalarConversionWeight getConversionWeight(java.lang.Class expectedTypeClass)
           
(package private)  int hex_value(char digit)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHAR

public static final int CHAR

STRING

public static final int STRING

TENTATIVE

public static final int TENTATIVE

DECODED_STRING

public static final int DECODED_STRING
Constructor Detail

SimpleLeaf

public SimpleLeaf(java.lang.String value,
                  int type)
Create a new TreeNode object.
Method Detail

getConstructedValue

public java.lang.Object getConstructedValue(java.lang.Class expectedType)
                                     throws JParamException
Specified by:
getConstructedValue in interface TreeNode

getConversionWeight

public ScalarConversionWeight getConversionWeight(java.lang.Class expectedTypeClass)
Specified by:
getConversionWeight in interface TreeNode

hex_value

int hex_value(char digit)

decode_next_char

char decode_next_char(SimpleLeaf.StringWithPos swp)

decode_char

char decode_char(java.lang.String str)

decode_string

java.lang.String decode_string(java.lang.String str)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004 SourceForge. All Rights Reserved.