public abstract class JSStringToNumberNode extends JavaScriptBaseNode
| Constructor and Description |
|---|
JSStringToNumberNode() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
allDigits(String input,
int maxLength) |
static JSStringToNumberNode |
create() |
protected double |
doBinary(String input) |
protected double |
doBinarySafe(String input) |
protected double |
doDouble(String input) |
protected double |
doHex(String input) |
protected double |
doHexSafe(String input) |
protected double |
doInfinity(String input,
com.oracle.truffle.api.profiles.ConditionProfile endsWithInfinity) |
protected double |
doInteger(String input) |
protected double |
doLengthIsZero(String input) |
protected double |
doNaN(String input) |
protected double |
doOctal(String input) |
protected double |
doOctalSafe(String input) |
protected double |
doSmallPosInt(String input) |
protected abstract double |
executeNoTrim(String input) |
double |
executeString(String input) |
protected static boolean |
isBinary(String input) |
protected static boolean |
isHex(String input) |
protected static boolean |
isOctal(String input) |
protected static boolean |
startsWithI(String input) |
protected static boolean |
startsWithValidDouble(String input)
First two chars are valid finite double.
|
protected static boolean |
startsWithValidInt(String input) |
copy, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic final double executeString(String input)
protected abstract double executeNoTrim(String input)
public static JSStringToNumberNode create()
protected static final boolean startsWithI(String input)
protected static final boolean startsWithValidDouble(String input)
!startsWithI && !isHex && !isOctal && !isBinary.protected static final boolean startsWithValidInt(String input)
protected static final boolean allDigits(String input, int maxLength)
protected static final boolean isHex(String input)
protected static final boolean isOctal(String input)
protected static final boolean isBinary(String input)
protected double doLengthIsZero(String input)
protected double doInfinity(String input, com.oracle.truffle.api.profiles.ConditionProfile endsWithInfinity)
protected double doNaN(String input)
protected double doHexSafe(String input)
protected double doHex(String input)
protected double doOctalSafe(String input)
protected double doOctal(String input)
protected double doBinarySafe(String input)
protected double doBinary(String input)
protected double doSmallPosInt(String input)
protected double doInteger(String input) throws com.oracle.truffle.api.nodes.SlowPathException
com.oracle.truffle.api.nodes.SlowPathExceptionprotected double doDouble(String input)