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

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.DoubleQuotedStringNode

public class DoubleQuotedStringNode
extends StringNode

Defines a string node for double 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
DoubleQuotedStringNode(String value)
          Creates a double quoted string node that stores the given double quoted string value as a normalized string value and has got no parent node.
DoubleQuotedStringNode(String value, ASTNode parentNode)
          Creates a doubel quoted string node that stores the given double quoted string value as a normalized string value and has got the given 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

DoubleQuotedStringNode

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

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

DoubleQuotedStringNode

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

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


Copyright © 2010. All Rights Reserved.