C# 클래스 NVelocity.Runtime.Parser.Node.ASTReference

This class is responsible for handling the references in VTL ($foo). Please look at the Parser.jjt file which is what controls the generation of this class.
상속: NVelocity.Runtime.Parser.Node.SimpleNode
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
ASTReference ( Parser p, int id ) : System
ASTReference ( int id ) : System
Accept ( IParserVisitor visitor, Object data ) : Object

Accept the visitor.

Evaluate ( IInternalContextAdapter context ) : bool

Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not null

Execute ( Object o, IInternalContextAdapter context ) : Object

gets an Object that 'is' the value of the reference

GetVariableValue ( IContext context, String variable ) : Object
Init ( IInternalContextAdapter context, Object data ) : Object
Render ( IInternalContextAdapter context, TextWriter writer ) : bool

gets the value of the reference and outputs it to the writer.

SetLiteral ( String value ) : void
SetValue ( IInternalContextAdapter context, Object value ) : bool

Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()

Value ( IInternalContextAdapter context ) : Object

메소드 상세

ASTReference() 공개 메소드

public ASTReference ( Parser p, int id ) : System
p Parser
id int
리턴 System

ASTReference() 공개 메소드

public ASTReference ( int id ) : System
id int
리턴 System

Accept() 공개 메소드

Accept the visitor.
public Accept ( IParserVisitor visitor, Object data ) : Object
visitor IParserVisitor
data Object
리턴 Object

Evaluate() 공개 메소드

Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not null
public Evaluate ( IInternalContextAdapter context ) : bool
context IInternalContextAdapter context to compute value with
리턴 bool

Execute() 공개 메소드

gets an Object that 'is' the value of the reference
public Execute ( Object o, IInternalContextAdapter context ) : Object
o Object
context IInternalContextAdapter
리턴 Object

GetVariableValue() 공개 메소드

public GetVariableValue ( IContext context, String variable ) : Object
context IContext
variable String
리턴 Object

Init() 공개 메소드

public Init ( IInternalContextAdapter context, Object data ) : Object
context IInternalContextAdapter
data Object
리턴 Object

Render() 공개 메소드

gets the value of the reference and outputs it to the writer.
public Render ( IInternalContextAdapter context, TextWriter writer ) : bool
context IInternalContextAdapter context of data to use in getting value
writer System.IO.TextWriter writer to render to
리턴 bool

SetLiteral() 공개 메소드

public SetLiteral ( String value ) : void
value String
리턴 void

SetValue() 공개 메소드

Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()
public SetValue ( IInternalContextAdapter context, Object value ) : bool
context IInternalContextAdapter context object containing this reference
value Object Object to set as value
리턴 bool

Value() 공개 메소드

public Value ( IInternalContextAdapter context ) : Object
context IInternalContextAdapter
리턴 Object