C# Класс NVelocity.Runtime.Parser.Node.NodeUtils

Utilities for dealing with the AST node structure. *
Показать файл Открыть проект

Открытые методы

Метод Описание
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 *

Описание методов

interpolate() публичный статический Метод

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
Результат String

specialText() публичный статический Метод

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
Результат String

tokenLiteral() публичный статический Метод

complete node literal *
public static tokenLiteral ( Token t ) : String
t Token
Результат String