Class ScriptEnvironment
java.lang.Object
com.oracle.js.parser.ScriptEnvironment
Parser environment consists of command line options, and output and error writers, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumBehavior when encountering a function declaration in a lexical context where only statements are acceptable (function declarations are source elements, but not statements). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionScriptEnvironment(boolean strict, int ecmaScriptVersion, boolean emptyStatements, boolean syntaxExtensions, boolean scripting, boolean shebang, boolean constAsVar, boolean allowBigInt, boolean annexB, boolean classFields, boolean importAttributes, boolean importAssertions, boolean sourcePhaseImports, boolean privateFieldsIn, boolean topLevelAwait, boolean v8Intrinsics, ScriptEnvironment.FunctionStatementBehavior functionStatementBehavior) -
Method Summary
-
Field Details
-
ES_2015
public static final int ES_2015- See Also:
-
ES_2016
public static final int ES_2016- See Also:
-
ES_2017
public static final int ES_2017- See Also:
-
ES_2018
public static final int ES_2018- See Also:
-
ES_2019
public static final int ES_2019- See Also:
-
ES_2020
public static final int ES_2020- See Also:
-
ES_2021
public static final int ES_2021- See Also:
-
ES_2022
public static final int ES_2022- See Also:
-
ES_2023
public static final int ES_2023- See Also:
-
ES_2024
public static final int ES_2024- See Also:
-
ES_STAGING
public static final int ES_STAGING- See Also:
-
-
Constructor Details
-
ScriptEnvironment
public ScriptEnvironment(boolean strict, int ecmaScriptVersion, boolean emptyStatements, boolean syntaxExtensions, boolean scripting, boolean shebang, boolean constAsVar, boolean allowBigInt, boolean annexB, boolean classFields, boolean importAttributes, boolean importAssertions, boolean sourcePhaseImports, boolean privateFieldsIn, boolean topLevelAwait, boolean v8Intrinsics, ScriptEnvironment.FunctionStatementBehavior functionStatementBehavior)
-
-
Method Details
-
isStrict
public boolean isStrict() -
builder
-