public abstract static class StringPrototypeBuiltins.JSStringReplaceBaseNode extends StringPrototypeBuiltins.JSStringOperationWithRegExpArgument
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StringPrototypeBuiltins.JSStringReplaceBaseNode.ReplaceStringConsumer |
JSBuiltinNode.Inlineable, JSBuiltinNode.Inlined| Modifier and Type | Field and Description |
|---|---|
protected com.oracle.truffle.api.profiles.BranchProfile |
dollarProfile |
protected com.oracle.truffle.api.profiles.ConditionProfile |
functionalReplaceProfile |
protected JSFunctionCallNode |
functionReplaceCallNode |
protected IsCallableNode |
isCallableNode |
protected com.oracle.truffle.api.profiles.ConditionProfile |
replaceNecessaryProfile |
protected com.oracle.truffle.api.profiles.ValueProfile |
replaceValueProfile |
protected com.oracle.truffle.api.profiles.ValueProfile |
searchValueProfile |
protected JSToStringNode |
toString2Node |
protected JSToStringNode |
toString3Node |
callSpecialProfile, isSpecialProfile, regExpIgnoreLastIndexNode, regExpNodeINTERMEDIATE_VALUE| Constructor and Description |
|---|
JSStringReplaceBaseNode(JSContext context,
JSBuiltin builtin) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendSubstitution(StringBuilder sb,
String input,
String replaceStr,
String matched,
int pos,
com.oracle.truffle.api.profiles.BranchProfile dollarProfile) |
protected Object |
functionReplaceCall(Object splitter,
Object separator,
Object[] args) |
protected static ReplaceStringParser.Token[] |
parseReplaceValue(String replaceValue) |
protected void |
requireObjectCoercible(Object target) |
protected int |
toIntegerAsInt(Object target) |
protected String |
toString(Object target) |
protected static int |
within(int value,
int min,
int max) |
protected static int |
withinNumber(Number value,
int min,
int max) |
call, getMethod, getRegExpIgnoreLastIndexNode, getRegExpNode, invoke, matchIgnoreLastIndexcopyUninitialized, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecializeprotected JSFunctionCallNode functionReplaceCallNode
protected JSToStringNode toString2Node
protected JSToStringNode toString3Node
protected IsCallableNode isCallableNode
protected final com.oracle.truffle.api.profiles.ConditionProfile functionalReplaceProfile
protected final com.oracle.truffle.api.profiles.ConditionProfile replaceNecessaryProfile
protected final com.oracle.truffle.api.profiles.BranchProfile dollarProfile
protected final com.oracle.truffle.api.profiles.ValueProfile searchValueProfile
protected final com.oracle.truffle.api.profiles.ValueProfile replaceValueProfile
protected static ReplaceStringParser.Token[] parseReplaceValue(String replaceValue)
protected static void appendSubstitution(StringBuilder sb, String input, String replaceStr, String matched, int pos, com.oracle.truffle.api.profiles.BranchProfile dollarProfile)
protected final Object functionReplaceCall(Object splitter, Object separator, Object[] args)
protected static int within(int value,
int min,
int max)
protected static int withinNumber(Number value, int min, int max)
protected final void requireObjectCoercible(Object target)
protected int toIntegerAsInt(Object target)