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

Utilities for dealing with the AST node structure. *
Exibir arquivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
interpolate ( String argStr, Context.IContext vars ) : String

Utility method to interpolate context variables into string literals. So that the following will work: * #set $name = "candy" $image.getURI("${name}.jpg") * And the string literal argument will be transformed into "candy.jpg" before the method is executed.

specialText ( Token t ) : String

Collect all the <SPECIAL_TOKEN>s that are carried along with a token. Special tokens do not participate in parsing but can still trigger certain lexical actions. In some cases you may want to retrieve these special tokens, this is simply a way to extract them.

tokenLiteral ( Token t ) : String

complete node literal *

Method Details

interpolate() public static method

Utility method to interpolate context variables into string literals. So that the following will work: * #set $name = "candy" $image.getURI("${name}.jpg") * And the string literal argument will be transformed into "candy.jpg" before the method is executed.
public static interpolate ( String argStr, Context.IContext vars ) : String
argStr String
vars Context.IContext
return String

specialText() public static method

Collect all the <SPECIAL_TOKEN>s that are carried along with a token. Special tokens do not participate in parsing but can still trigger certain lexical actions. In some cases you may want to retrieve these special tokens, this is simply a way to extract them.
public static specialText ( Token t ) : String
t Token
return String

tokenLiteral() public static method

complete node literal *
public static tokenLiteral ( Token t ) : String
t Token
return String