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

java.lang.Object
  extended by net.sf.sasl.language.placeholder.syntax.ASTNode
      extended by net.sf.sasl.language.placeholder.syntax.types.TypeValueNode<String>
          extended by net.sf.sasl.language.placeholder.syntax.types.StringNode
              extended by net.sf.sasl.language.placeholder.syntax.types.SingleQuotedStringNode

public class SingleQuotedStringNode
extends StringNode

Defines a string node for single quoted strings.

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
SingleQuotedStringNode(String value)
          Creates a single quoted string node that stores the given single quoted string value as normalized string value and has got no parent node.
SingleQuotedStringNode(String value, ASTNode parentNode)
          Creates a single quoted string node that stores the given single quoted string value as normalized string value and has got the given parent as its parent node.
 
Method Summary
 
Methods inherited from class net.sf.sasl.language.placeholder.syntax.types.StringNode
prettyPrint
 
Methods inherited from class net.sf.sasl.language.placeholder.syntax.types.TypeValueNode
getTypeValue, 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

SingleQuotedStringNode

public SingleQuotedStringNode(String value)
                       throws IllegalArgumentException
Creates a single quoted string node that stores the given single quoted string value as normalized string value and has got no parent node. The single quoted string will be decoded to a normalized string that has no single quote at the start and end of the string.

Parameters:
value - non null single quoted string.
Throws:
IllegalArgumentException - if value is null or not a well formed single quoted string.
Since:
0.0.1 (sasl-common-aspect-library)

SingleQuotedStringNode

public SingleQuotedStringNode(String value,
                              ASTNode parentNode)
                       throws IllegalArgumentException
Creates a single quoted string node that stores the given single quoted string value as normalized string value and has got the given parent as its parent node. The single quoted string will be decoded to a normalized string that has no single quote at the start and end of the string.

Parameters:
value - non null single quoted string.
parentNode - null or non null parent node.
Throws:
IllegalArgumentException - if value is null or not a well formed single quoted string.
Since:
0.0.1 (sasl-common-aspect-library)


Copyright © 2010. All Rights Reserved.