C# Class NVelocity.Runtime.Parser.Node.ASTStringLiteral

ASTStringLiteral support.
Inheritance: NVelocity.Runtime.Parser.Node.SimpleNode
Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
ASTStringLiteral ( Parser p, int id ) : System

Initializes a new instance of the ASTStringLiteral class.

ASTStringLiteral ( int id ) : System

Initializes a new instance of the ASTStringLiteral class.

Accept ( IParserVisitor visitor, Object data ) : Object

Accept the visitor. *

Init ( IInternalContextAdapter context, Object data ) : Object

init : we don't have to do much. Init the tree (there shouldn't be one) and then see if interpolation is turned on.

Value ( IInternalContextAdapter context ) : Object

renders the value of the string literal If the properties allow, and the string literal contains a $ or a # the literal is rendered against the context Otherwise, the stringlit is returned.

Private Methods

Method Description
Evaluate ( NVelocity.Runtime.Parser.Node.SimpleNode inlineNode, IInternalContextAdapter context ) : object
EvaluateInPlace ( string content, IInternalContextAdapter context ) : object
InterpolateDictionaryString ( string str, IInternalContextAdapter context ) : HybridDictionary

Interpolates the dictionary string. dictionary string is any string in the format "%{ key='value' [,key2='value2' }" "%{ key='value' [,key2='value2'] }"

IsDictionaryString ( string str ) : bool
ProcessDictEntry ( HybridDictionary map, StringBuilder keyBuilder, StringBuilder value, bool isTextContent, IInternalContextAdapter context ) : void
ProcessDictEntry ( HybridDictionary map, StringBuilder keyBuilder, object value, IInternalContextAdapter context ) : void
RecursiveBuildDictionary ( char contents, int fromIndex, IInternalContextAdapter context, int &lastIndex ) : HybridDictionary

Method Details

ASTStringLiteral() public method

Initializes a new instance of the ASTStringLiteral class.
public ASTStringLiteral ( Parser p, int id ) : System
p Parser The p.
id int The id.
return System

ASTStringLiteral() public method

Initializes a new instance of the ASTStringLiteral class.
public ASTStringLiteral ( int id ) : System
id int The id.
return System

Accept() public method

Accept the visitor. *
public Accept ( IParserVisitor visitor, Object data ) : Object
visitor IParserVisitor
data Object
return Object

Init() public method

init : we don't have to do much. Init the tree (there shouldn't be one) and then see if interpolation is turned on.
public Init ( IInternalContextAdapter context, Object data ) : Object
context IInternalContextAdapter
data Object
return Object

Value() public method

renders the value of the string literal If the properties allow, and the string literal contains a $ or a # the literal is rendered against the context Otherwise, the stringlit is returned.
public Value ( IInternalContextAdapter context ) : Object
context IInternalContextAdapter
return Object