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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ASTStringLiteral() public méthode

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

Accept() public méthode

Accept the visitor. *
public Accept ( IParserVisitor visitor, Object data ) : Object
visitor IParserVisitor
data Object
Résultat Object

Init() public méthode

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
Résultat Object

Value() public méthode

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
Résultat Object