C# 클래스 Rhino.CompilerEnvirons

파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
CompilerEnvirons ( ) : System
GetActivationNames ( ) : ICollection
GetAllowSharpComments ( ) : bool
GetErrorReporter ( ) : ErrorReporter
GetLanguageVersion ( ) : int
GetOptimizationLevel ( ) : int
GetWarnTrailingComma ( ) : bool
IdeEnvirons ( ) : CompilerEnvirons

Returns a CompilerEnvirons suitable for using Rhino in an IDE environment. Most features are enabled by default. The ErrorReporter is set to an Rhino.Ast.ErrorCollector .

InitFromContext ( Context cx ) : void
IsAllowMemberExprAsFunctionName ( ) : bool

Extension to ECMA: if 'function <name>' is not followed by '(', assume <name> starts a memberExpr

IsGenerateDebugInfo ( ) : bool
IsGenerateObserverCount ( ) : bool
IsGeneratingSource ( ) : bool
IsIdeMode ( ) : bool
IsRecordingComments ( ) : bool
IsRecordingLocalJsDocComments ( ) : bool
IsReservedKeywordAsIdentifier ( ) : bool
IsStrictMode ( ) : bool
IsXmlAvailable ( ) : bool
RecoverFromErrors ( ) : bool
ReportWarningAsError ( ) : bool
SetActivationNames ( ICollection activationNames ) : void
SetAllowMemberExprAsFunctionName ( bool flag ) : void
SetAllowSharpComments ( bool allow ) : void

Mozilla sources use the C preprocessor.

Mozilla sources use the C preprocessor.

SetErrorReporter ( ErrorReporter errorReporter ) : void
SetGenerateDebugInfo ( bool flag ) : void
SetGenerateObserverCount ( bool generateObserverCount ) : void

Turn on or off generation of code with callbacks to track the count of executed instructions.

Turn on or off generation of code with callbacks to track the count of executed instructions. Currently only affects JVM byte code generation: this slows down the generated code, but code generated without the callbacks will not be counted toward instruction thresholds. Rhino's interpretive mode does instruction counting without inserting callbacks, so there is no requirement to compile code differently.

SetGeneratingSource ( bool generatingSource ) : void

Specify whether or not source information should be generated.

Specify whether or not source information should be generated.

Without source information, evaluating the "toString" method on JavaScript functions produces only "[native code]" for the body of the function. Note that code generated without source is not fully ECMA conformant.

SetIdeMode ( bool ide ) : void

Puts the parser in "IDE" mode.

Puts the parser in "IDE" mode. This enables some slightly more expensive computations, such as figuring out helpful error bounds.

SetLanguageVersion ( int languageVersion ) : void
SetOptimizationLevel ( int level ) : void
SetRecordingComments ( bool record ) : void
SetRecordingLocalJsDocComments ( bool record ) : void
SetRecoverFromErrors ( bool recover ) : void

Turn on or off full error recovery.

Turn on or off full error recovery. In this mode, parse errors do not throw an exception, and the parser attempts to build a full syntax tree from the input. Useful for IDEs and other frontends.

SetReservedKeywordAsIdentifier ( bool flag ) : void
SetStrictMode ( bool strict ) : void
SetWarnTrailingComma ( bool warn ) : void
SetXmlAvailable ( bool flag ) : void

메소드 상세

CompilerEnvirons() 공개 메소드

public CompilerEnvirons ( ) : System
리턴 System

GetActivationNames() 공개 메소드

public GetActivationNames ( ) : ICollection
리턴 ICollection

GetAllowSharpComments() 공개 메소드

public GetAllowSharpComments ( ) : bool
리턴 bool

GetErrorReporter() 공개 메소드

public GetErrorReporter ( ) : ErrorReporter
리턴 ErrorReporter

GetLanguageVersion() 공개 메소드

public GetLanguageVersion ( ) : int
리턴 int

GetOptimizationLevel() 공개 메소드

public GetOptimizationLevel ( ) : int
리턴 int

GetWarnTrailingComma() 공개 메소드

public GetWarnTrailingComma ( ) : bool
리턴 bool

IdeEnvirons() 공개 정적인 메소드

Returns a CompilerEnvirons suitable for using Rhino in an IDE environment. Most features are enabled by default. The ErrorReporter is set to an Rhino.Ast.ErrorCollector .
public static IdeEnvirons ( ) : CompilerEnvirons
리턴 CompilerEnvirons

InitFromContext() 공개 메소드

public InitFromContext ( Context cx ) : void
cx Context
리턴 void

IsAllowMemberExprAsFunctionName() 공개 메소드

Extension to ECMA: if 'function <name>' is not followed by '(', assume <name> starts a memberExpr
public IsAllowMemberExprAsFunctionName ( ) : bool
리턴 bool

IsGenerateDebugInfo() 공개 메소드

public IsGenerateDebugInfo ( ) : bool
리턴 bool

IsGenerateObserverCount() 공개 메소드

public IsGenerateObserverCount ( ) : bool
리턴 bool

IsGeneratingSource() 공개 메소드

public IsGeneratingSource ( ) : bool
리턴 bool

IsIdeMode() 공개 메소드

public IsIdeMode ( ) : bool
리턴 bool

IsRecordingComments() 공개 메소드

public IsRecordingComments ( ) : bool
리턴 bool

IsRecordingLocalJsDocComments() 공개 메소드

public IsRecordingLocalJsDocComments ( ) : bool
리턴 bool

IsReservedKeywordAsIdentifier() 공개 메소드

public IsReservedKeywordAsIdentifier ( ) : bool
리턴 bool

IsStrictMode() 공개 메소드

public IsStrictMode ( ) : bool
리턴 bool

IsXmlAvailable() 공개 메소드

public IsXmlAvailable ( ) : bool
리턴 bool

RecoverFromErrors() 공개 메소드

public RecoverFromErrors ( ) : bool
리턴 bool

ReportWarningAsError() 공개 메소드

public ReportWarningAsError ( ) : bool
리턴 bool

SetActivationNames() 공개 메소드

public SetActivationNames ( ICollection activationNames ) : void
activationNames ICollection
리턴 void

SetAllowMemberExprAsFunctionName() 공개 메소드

public SetAllowMemberExprAsFunctionName ( bool flag ) : void
flag bool
리턴 void

SetAllowSharpComments() 공개 메소드

Mozilla sources use the C preprocessor.
Mozilla sources use the C preprocessor.
public SetAllowSharpComments ( bool allow ) : void
allow bool
리턴 void

SetErrorReporter() 공개 메소드

public SetErrorReporter ( ErrorReporter errorReporter ) : void
errorReporter ErrorReporter
리턴 void

SetGenerateDebugInfo() 공개 메소드

public SetGenerateDebugInfo ( bool flag ) : void
flag bool
리턴 void

SetGenerateObserverCount() 공개 메소드

Turn on or off generation of code with callbacks to track the count of executed instructions.
Turn on or off generation of code with callbacks to track the count of executed instructions. Currently only affects JVM byte code generation: this slows down the generated code, but code generated without the callbacks will not be counted toward instruction thresholds. Rhino's interpretive mode does instruction counting without inserting callbacks, so there is no requirement to compile code differently.
public SetGenerateObserverCount ( bool generateObserverCount ) : void
generateObserverCount bool /// if true, generated code will contain /// calls to accumulate an estimate of the instructions executed. ///
리턴 void

SetGeneratingSource() 공개 메소드

Specify whether or not source information should be generated.
Specify whether or not source information should be generated.

Without source information, evaluating the "toString" method on JavaScript functions produces only "[native code]" for the body of the function. Note that code generated without source is not fully ECMA conformant.

public SetGeneratingSource ( bool generatingSource ) : void
generatingSource bool
리턴 void

SetIdeMode() 공개 메소드

Puts the parser in "IDE" mode.
Puts the parser in "IDE" mode. This enables some slightly more expensive computations, such as figuring out helpful error bounds.
public SetIdeMode ( bool ide ) : void
ide bool
리턴 void

SetLanguageVersion() 공개 메소드

public SetLanguageVersion ( int languageVersion ) : void
languageVersion int
리턴 void

SetOptimizationLevel() 공개 메소드

public SetOptimizationLevel ( int level ) : void
level int
리턴 void

SetRecordingComments() 공개 메소드

public SetRecordingComments ( bool record ) : void
record bool
리턴 void

SetRecordingLocalJsDocComments() 공개 메소드

public SetRecordingLocalJsDocComments ( bool record ) : void
record bool
리턴 void

SetRecoverFromErrors() 공개 메소드

Turn on or off full error recovery.
Turn on or off full error recovery. In this mode, parse errors do not throw an exception, and the parser attempts to build a full syntax tree from the input. Useful for IDEs and other frontends.
public SetRecoverFromErrors ( bool recover ) : void
recover bool
리턴 void

SetReservedKeywordAsIdentifier() 공개 메소드

public SetReservedKeywordAsIdentifier ( bool flag ) : void
flag bool
리턴 void

SetStrictMode() 공개 메소드

public SetStrictMode ( bool strict ) : void
strict bool
리턴 void

SetWarnTrailingComma() 공개 메소드

public SetWarnTrailingComma ( bool warn ) : void
warn bool
리턴 void

SetXmlAvailable() 공개 메소드

public SetXmlAvailable ( bool flag ) : void
flag bool
리턴 void