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

Utilities for dealing with the AST node structure. *
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

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

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

specialText() public static méthode

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

tokenLiteral() public static méthode

complete node literal *
public static tokenLiteral ( Token t ) : String
t Token
Résultat String