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