메소드 | 설명 | |
---|---|---|
CompilerEnvirons ( ) : System | ||
GetActivationNames ( ) : ICollection |
||
GetAllowSharpComments ( ) : bool | ||
GetErrorReporter ( ) : ErrorReporter | ||
GetLanguageVersion ( ) : int | ||
GetOptimizationLevel ( ) : int | ||
GetWarnTrailingComma ( ) : bool | ||
IdeEnvirons ( ) : |
Returns a
|
|
InitFromContext ( |
||
IsAllowMemberExprAsFunctionName ( ) : bool |
Extension to ECMA: if 'function <name>' is not followed by '(', assume <name> starts a
|
|
IsGenerateDebugInfo ( ) : bool | ||
IsGenerateObserverCount ( ) : bool | ||
IsGeneratingSource ( ) : bool | ||
IsIdeMode ( ) : bool | ||
IsRecordingComments ( ) : bool | ||
IsRecordingLocalJsDocComments ( ) : bool | ||
IsReservedKeywordAsIdentifier ( ) : bool | ||
IsStrictMode ( ) : bool | ||
IsXmlAvailable ( ) : bool | ||
RecoverFromErrors ( ) : bool | ||
ReportWarningAsError ( ) : bool | ||
SetActivationNames ( ICollection |
||
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 |
public SetActivationNames ( ICollection |
||
activationNames | ICollection |
|
리턴 | void |
public SetAllowMemberExprAsFunctionName ( bool flag ) : void | ||
flag | bool | |
리턴 | void |
public SetAllowSharpComments ( bool allow ) : void | ||
allow | bool | |
리턴 | void |
public SetErrorReporter ( ErrorReporter errorReporter ) : void | ||
errorReporter | ErrorReporter | |
리턴 | void |
public SetGenerateObserverCount ( bool generateObserverCount ) : void | ||
generateObserverCount | bool | /// if true, generated code will contain /// calls to accumulate an estimate of the instructions executed. /// |
리턴 | void |
public SetGeneratingSource ( bool generatingSource ) : void | ||
generatingSource | bool | |
리턴 | void |
public SetLanguageVersion ( int languageVersion ) : void | ||
languageVersion | int | |
리턴 | void |
public SetRecordingComments ( bool record ) : void | ||
record | bool | |
리턴 | void |
public SetRecordingLocalJsDocComments ( bool record ) : void | ||
record | bool | |
리턴 | void |
public SetRecoverFromErrors ( bool recover ) : void | ||
recover | bool | |
리턴 | void |
public SetReservedKeywordAsIdentifier ( bool flag ) : void | ||
flag | bool | |
리턴 | void |