public final class AccessNode extends BaseNode
| Constructor and Description |
|---|
AccessNode(long token,
int finish,
Expression base,
com.oracle.truffle.api.strings.TruffleString property) |
AccessNode(long token,
int finish,
Expression base,
com.oracle.truffle.api.strings.TruffleString property,
boolean isSuper,
boolean isPrivate,
boolean optional,
boolean optionalChain)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Node |
accept(NodeVisitor<? extends LexicalContext> visitor)
Assist in IR navigation.
|
<R> R |
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Provides a means to navigate the IR.
|
String |
getPrivateName() |
com.oracle.truffle.api.strings.TruffleString |
getPrivateNameTS() |
String |
getProperty()
Get the property name
|
com.oracle.truffle.api.strings.TruffleString |
getPropertyTS() |
boolean |
isPrivate() |
AccessNode |
setIsSuper()
Mark this node as being a SuperProperty access.
|
void |
toString(StringBuilder sb,
boolean printType)
Print logic that decides whether to show the optimistic type or not - for example it should
not be printed after just parse, when it hasn't been computed, or has been set to a trivially
provable value
|
getBase, isFunction, isIndex, isOptional, isOptionalChain, isSupergetFinish, getFinishWithoutParens, getStart, getStartWithoutParens, isAlwaysFalse, isAlwaysTrue, isParenthesized, isSelfModifying, makeParenthesizedclone, equals, getSourceOrder, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toStringpublic AccessNode(long token,
int finish,
Expression base,
com.oracle.truffle.api.strings.TruffleString property,
boolean isSuper,
boolean isPrivate,
boolean optional,
boolean optionalChain)
token - tokenfinish - finishbase - base nodeproperty - propertypublic AccessNode(long token,
int finish,
Expression base,
com.oracle.truffle.api.strings.TruffleString property)
public Node accept(NodeVisitor<? extends LexicalContext> visitor)
public <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printType)
Nodepublic String getProperty()
public com.oracle.truffle.api.strings.TruffleString getPropertyTS()
public boolean isPrivate()
public String getPrivateName()
public com.oracle.truffle.api.strings.TruffleString getPrivateNameTS()
public AccessNode setIsSuper()
BaseNodesetIsSuper in class BaseNode