public abstract class JSToOperandNode extends JavaScriptBaseNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkOperatorAllowed |
protected JSToPrimitiveNode.Hint |
hint |
| Modifier | Constructor and Description |
|---|---|
protected |
JSToOperandNode(JSToPrimitiveNode.Hint hint,
boolean checkOperatorAllowed) |
| Modifier and Type | Method and Description |
|---|---|
static JSToOperandNode |
create(JSToPrimitiveNode.Hint hint) |
static JSToOperandNode |
create(JSToPrimitiveNode.Hint hint,
boolean checkOperatorAllowed) |
static JSToOperandNode |
createHintDefault() |
static JSToOperandNode |
createHintNumber() |
static JSToOperandNode |
createHintString() |
protected Object |
doOther(Object arg,
JSToPrimitiveNode toPrimitiveNode) |
protected Object |
doOverloaded(JSOverloadedOperatorsObject arg) |
abstract Object |
execute(Object value) |
protected JSToPrimitiveNode.Hint |
getHint() |
copy, getLanguage, getRealm, hasOverloadedOperators, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringprotected final JSToPrimitiveNode.Hint hint
protected final boolean checkOperatorAllowed
protected JSToOperandNode(JSToPrimitiveNode.Hint hint, boolean checkOperatorAllowed)
public static JSToOperandNode createHintDefault()
public static JSToOperandNode createHintString()
public static JSToOperandNode createHintNumber()
public static JSToOperandNode create(JSToPrimitiveNode.Hint hint)
public static JSToOperandNode create(JSToPrimitiveNode.Hint hint, boolean checkOperatorAllowed)
protected JSToPrimitiveNode.Hint getHint()
protected Object doOverloaded(JSOverloadedOperatorsObject arg)
protected Object doOther(Object arg, JSToPrimitiveNode toPrimitiveNode)