Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class JSDescriptor.Builder<T extends ScriptOrFn<T>>
java.lang.Object
org.htmlunit.corejs.javascript.JSDescriptor.Builder<T>
- Enclosing class:
- JSDescriptor<T extends ScriptOrFn<T>>
A mutable object for creating the final immutable
JSDescriptor. This is populated
during the compilation process, and then build(Consumer) is called at the end
of the process to gneeate the final objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintfinal ArrayList<JSDescriptor.Builder<JSFunction>>intString[]intboolean[]booleanbooleanintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(Consumer<JSDescriptor<?>> consumer) Build the final object, calling the consumer as eachJSDescriptoris generated.Create a builder for the descriptor of a nested function.voidsetCode(JSCode.Builder<T> code)
-
Field Details
-
code
-
constructor
-
parent
-
nestedFunctions
-
paramAndVarNames
-
paramIsConst
public boolean[] paramIsConst -
isStrict
public boolean isStrict -
isScript
public boolean isScript -
isTopLevel
public boolean isTopLevel -
isES6Generator
public boolean isES6Generator -
isShorthand
public boolean isShorthand -
hasPrototype
public boolean hasPrototype -
hasLexicalThis
public boolean hasLexicalThis -
isEvalFunction
public boolean isEvalFunction -
hasRestArg
public boolean hasRestArg -
sourceFile
-
sourceCodeProvider
-
sourceStart
public int sourceStart -
sourceEnd
public int sourceEnd -
name
-
languageVersion
public int languageVersion -
paramAndVarCount
public int paramAndVarCount -
paramCount
public int paramCount -
arity
public int arity -
hasDefaultParameters
public boolean hasDefaultParameters -
requiresActivationFrame
public boolean requiresActivationFrame -
requiresArgumentObject
public boolean requiresArgumentObject -
declaredAsFunctionExpression
public boolean declaredAsFunctionExpression -
securityController
-
securityDomain
-
functionType
public int functionType
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createChildBuilder
Create a builder for the descriptor of a nested function. This will inherit language version and other traits from its parent. -
build
Build the final object, calling the consumer as eachJSDescriptoris generated. -
setCode
-