net.sf.sasl.language.placeholder.syntax.types
Class DecimalNode

java.lang.Object
  extended by net.sf.sasl.language.placeholder.syntax.ASTNode
      extended by net.sf.sasl.language.placeholder.syntax.types.TypeValueNode<BigDecimal>
          extended by net.sf.sasl.language.placeholder.syntax.types.DecimalNode

public class DecimalNode
extends TypeValueNode<BigDecimal>

Defines a decimal node that holds a BigDecimal value.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Field Summary
 
Fields inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode
INDENT_PER_DEPTH, INDENT_STRING
 
Constructor Summary
DecimalNode(String value)
          Creates a decimal node with the given decimal value and no parent node.
DecimalNode(String value, ASTNode parentNode)
          Creates a decimal node with the given decimal value and parent node.
 
Method Summary
 
Methods inherited from class net.sf.sasl.language.placeholder.syntax.types.TypeValueNode
getTypeValue, prettyPrint, setTypeValue
 
Methods inherited from class net.sf.sasl.language.placeholder.syntax.ASTNode
getChildNodes, getParentNode, isLeafNode, isRootNode, setParentNode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalNode

public DecimalNode(String value)
            throws IllegalArgumentException
Creates a decimal node with the given decimal value and no parent node.

Parameters:
value - non null decimal number.
Throws:
IllegalArgumentException - if value is null or not a valid decimal number.
Since:
0.0.1 (sasl-common-aspect-library)

DecimalNode

public DecimalNode(String value,
                   ASTNode parentNode)
            throws IllegalArgumentException
Creates a decimal node with the given decimal value and parent node.

Parameters:
value - non null decimal number.
parentNode - null or non null parent node.
Throws:
IllegalArgumentException - if value is null or not a valid decimal number.
Since:
0.0.1 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.