public static class JSDescriptor.Builder<T extends ScriptOrFn<T>> extends Object
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.| Modifier and Type | Field and Description |
|---|---|
int |
arity |
JSCode.Builder<T> |
code |
JSCode.Builder<T> |
constructor |
boolean |
declaredAsFunctionExpression |
int |
functionType |
boolean |
hasDefaultParameters |
boolean |
hasLexicalThis |
boolean |
hasPrototype |
boolean |
hasRestArg |
boolean |
isES6Generator |
boolean |
isEvalFunction |
boolean |
isScript |
boolean |
isShorthand |
boolean |
isStrict |
boolean |
isTopLevel |
int |
languageVersion |
String |
name |
ArrayList<JSDescriptor.Builder<JSFunction>> |
nestedFunctions |
int |
paramAndVarCount |
String[] |
paramAndVarNames |
int |
paramCount |
boolean[] |
paramIsConst |
JSDescriptor.Builder<?> |
parent |
String |
rawSource |
int |
rawSourceEnd |
int |
rawSourceStart |
boolean |
requiresActivationFrame |
boolean |
requiresArgumentObject |
SecurityController |
securityController |
Object |
securityDomain |
String |
sourceFile |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JSDescriptor<T> |
build(Consumer<JSDescriptor<?>> consumer)
Build the final object, calling the consumer as each
JSDescriptor is generated. |
JSDescriptor.Builder<JSFunction> |
createChildBuilder()
Create a builder for the descriptor of a nested function.
|
void |
setCode(JSCode.Builder<T> code) |
public JSCode.Builder<T extends ScriptOrFn<T>> code
public JSCode.Builder<T extends ScriptOrFn<T>> constructor
public JSDescriptor.Builder<?> parent
public final ArrayList<JSDescriptor.Builder<JSFunction>> nestedFunctions
public String[] paramAndVarNames
public boolean[] paramIsConst
public boolean isStrict
public boolean isScript
public boolean isTopLevel
public boolean isES6Generator
public boolean isShorthand
public boolean hasPrototype
public boolean hasLexicalThis
public boolean isEvalFunction
public boolean hasRestArg
public String sourceFile
public String rawSource
public int rawSourceStart
public int rawSourceEnd
public String name
public int languageVersion
public int paramAndVarCount
public int paramCount
public int arity
public boolean hasDefaultParameters
public boolean requiresActivationFrame
public boolean requiresArgumentObject
public boolean declaredAsFunctionExpression
public SecurityController securityController
public Object securityDomain
public int functionType
public JSDescriptor.Builder<JSFunction> createChildBuilder()
public JSDescriptor<T> build(Consumer<JSDescriptor<?>> consumer)
JSDescriptor is generated.public void setCode(JSCode.Builder<T> code)
Copyright © 2025 HtmlUnit. All rights reserved.