Node.AncestorIterable, Node.NodeMismatch, Node.SideEffectFlags, Node.TypeDeclarationNode
Modifier and Type | Field and Description |
---|---|
private double |
number |
private static long |
serialVersionUID |
ACCESS_MODIFIER, ADDED_BLOCK, ANALYZED_DURING_GTI, ARROW_FN, CHANGE_TIME, COLUMN_BITS, COLUMN_MASK, COMPUTED_PROP_GETTER, COMPUTED_PROP_METHOD, COMPUTED_PROP_SETTER, COMPUTED_PROP_VARIABLE, CONSTANT_PROPERTY_DEF, CONSTRUCT_SIGNATURE, DECLARED_TYPE_EXPR, DIRECT_EVAL, DIRECTIVES, EXPORT_ALL_FROM, EXPORT_DEFAULT, FLAG_ARGUMENTS_UNMODIFIED, FLAG_GLOBAL_STATE_UNMODIFIED, FLAG_LOCAL_RESULTS, FLAG_NO_THROWS, FLAG_THIS_UNMODIFIED, FREE_CALL, GENERATOR_FN, GENERATOR_MARKER, GENERATOR_SAFE, GENERIC_TYPE_LIST, IMPLEMENTS, INCRDECR_PROP, INFERRED_FUNCTION, INPUT_ID, IS_CONSTANT_NAME, IS_CONSTANT_VAR, IS_NAMESPACE, JSDOC_INFO_PROP, LENGTH, MAX_COLUMN_NUMBER, next, NO_SIDE_EFFECTS, NON_INDEXABLE, OPT_ARG_NAME, OPT_ES6_TYPED, ORIGINALNAME_PROP, QUOTED_PROP, RAW_STRING_VALUE, REFLECTED_OBJECT, SIDE_EFFECT_FLAGS, SIDE_EFFECTS_ALL, SIDE_EFFECTS_FLAGS_MASK, SLASH_V, STATIC_MEMBER, STATIC_SOURCE_FILE, SYNTHETIC_BLOCK_PROP, type, TYPE_BEFORE_CAST, VAR_ARGS_NAME, YIELD_FOR
Constructor and Description |
---|
NumberNode(double number) |
NumberNode(double number,
int lineno,
int charno) |
Modifier and Type | Method and Description |
---|---|
Node.NumberNode |
cloneNode() |
double |
getDouble()
Can only be called when getType() == TokenStream.NUMBER
|
(package private) boolean |
isEquivalentTo(Node node,
boolean compareType,
boolean recur,
boolean jsDoc) |
void |
setDouble(double d)
Can only be called when getType() == Token.NUMBER
|
addChildAfter, addChildBefore, addChildrenAfter, addChildrenToBack, addChildrenToFront, addChildToBack, addChildToFront, appendStringTree, checkTreeEquals, checkTreeEqualsImpl, checkTreeEqualsIncludingJsDoc, children, clonePropsFrom, cloneTree, copyInformationFrom, copyInformationFromForTree, copyNodeFields, createProp, createProp, detachChildren, detachFromParent, extractCharno, extractLineno, getAncestor, getAncestors, getBooleanProp, getChangeTime, getCharno, getChildAtIndex, getChildBefore, getChildCount, getDeclaredTypeExpression, getDirectives, getExistingIntProp, getFirstChild, getFirstFirstChild, getGrandparent, getIndexOfChild, getInputId, getIntProp, getJSDocInfo, getJSType, getJSTypeBeforeCast, getLastChild, getLastSibling, getLength, getLineno, getNext, getOriginalName, getParent, getProp, getPropListHeadForTesting, getQualifiedName, getSecondChild, getSideEffectFlags, getSourceFileName, getSourceOffset, getSourcePosition, getStaticSourceFile, getString, getType, getTypeI, hasChild, hasChildren, hasMoreThanOneChild, hasOneChild, hasProps, isAdd, isAddedBlock, isAnd, isArrayLit, isArrayPattern, isArrowFunction, isAssign, isAssignAdd, isBlock, isBreak, isCall, isCallSignature, isCase, isCast, isCatch, isClass, isClassMembers, isComma, isComputedProp, isConst, isContinue, isDebugger, isDec, isDefaultCase, isDefaultValue, isDelProp, isDestructuringPattern, isDo, isEmpty, isEquivalentTo, isEquivalentToShallow, isEquivalentToTyped, isExport, isExprResult, isFalse, isFor, isForOf, isFromExterns, isFunction, isGeneratorFunction, isGeneratorMarker, isGeneratorSafe, isGetElem, isGetProp, isGetterDef, isHook, isIf, isImport, isImportSpec, isIn, isInc, isIndexable, isIndexSignature, isInstanceOf, isInterfaceMembers, isLabel, isLabelName, isLet, isLocalResultCall, isMemberFunctionDef, isMemberVariableDef, isName, isNE, isNew, isNoSideEffectsCall, isNot, isNull, isNumber, isObjectLit, isObjectPattern, isOnlyModifiesArgumentsCall, isOnlyModifiesThisCall, isOptionalArg, isOptionalEs6Typed, isOr, isParamList, isQualifiedName, isQuotedString, isRecordType, isRegExp, isRest, isReturn, isScript, isSetterDef, isSpread, isStaticMember, isString, isStringKey, isSuper, isSwitch, isSyntheticBlock, isTaggedTemplateLit, isTemplateLit, isTemplateLitSub, isThis, isThrow, isTrue, isTry, isTypeOf, isUnscopedQualifiedName, isValidAssignmentTarget, isVar, isVarArgs, isVoid, isWhile, isWith, isYield, isYieldFor, lookupProperty, makeNonIndexable, matchesQualifiedName, matchesQualifiedName, mayMutateArguments, mayMutateGlobalStateOrThrow, mergeLineCharNo, newNumber, newNumber, newString, newString, newString, newString, putBooleanProp, putIntProp, putProp, removeChild, removeChildAfter, removeChildren, removeFirstChild, removeProp, replaceChild, replaceChildAfter, setChangeTime, setCharno, setDeclaredTypeExpression, setDirectives, setGeneratorMarker, setGeneratorSafe, setInputId, setIsAddedBlock, setIsArrowFunction, setIsGeneratorFunction, setIsSyntheticBlock, setJSDocInfo, setJSType, setLength, setLineno, setOptionalArg, setOriginalName, setPropListHead, setQuotedString, setSideEffectFlags, setSideEffectFlags, setSourceEncodedPosition, setSourceEncodedPositionForTree, setSourceFileForTesting, setStaticMember, setStaticSourceFile, setString, setType, setTypeI, setVarArgs, setYieldFor, siblings, srcref, srcrefTree, toString, toString, toStringTree, useSourceInfoFrom, useSourceInfoFromForTree, useSourceInfoIfMissingFrom, useSourceInfoIfMissingFromForTree
private static final long serialVersionUID
private double number
NumberNode(double number)
public NumberNode(double number, int lineno, int charno)
public double getDouble()
Node
public void setDouble(double d)
Node
boolean isEquivalentTo(Node node, boolean compareType, boolean recur, boolean jsDoc)
isEquivalentTo
in class Node
compareType
- Whether to compare the JSTypes of the nodes.recur
- Whether to compare the children of the current node, if
not only the the count of the children are compared.jsDoc
- Whether to check that the JsDoc of the nodes are equivalent.public Node.NumberNode cloneNode()