C# 클래스 Jurassic.Compiler.LiteralExpression

Represents a literal expression.
상속: Jurassic.Compiler.Expression
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
Evaluate ( ) : object

Evaluates the expression, if possible.

GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void

Generates CIL for the expression.

LiteralExpression ( object value ) : System

Creates a new instance of LiteralExpression.

ToString ( ) : string

Converts the expression to a string.

메소드 상세

Evaluate() 공개 메소드

Evaluates the expression, if possible.
public Evaluate ( ) : object
리턴 object

GenerateCode() 공개 메소드

Generates CIL for the expression.
public GenerateCode ( ILGenerator generator, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The generator to output the CIL to.
optimizationInfo OptimizationInfo Information about any optimizations that should be performed.
리턴 void

LiteralExpression() 공개 메소드

Creates a new instance of LiteralExpression.
public LiteralExpression ( object value ) : System
value object The literal value.
리턴 System

ToString() 공개 메소드

Converts the expression to a string.
public ToString ( ) : string
리턴 string