Node.AncestorIterable, Node.NodeMismatch, Node.SideEffectFlags, Node.TypeDeclarationNode| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private java.lang.String |
str |
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 |
|---|
StringNode(int type,
java.lang.String str) |
StringNode(int type,
java.lang.String str,
int lineno,
int charno) |
| Modifier and Type | Method and Description |
|---|---|
Node.StringNode |
cloneNode() |
java.lang.String |
getString()
returns the string content.
|
(package private) boolean |
isEquivalentTo(Node node,
boolean compareType,
boolean recur,
boolean jsDoc) |
boolean |
isQuotedString()
If the property is not defined, this was not a quoted key.
|
void |
setQuotedString()
This should only be called for STRING nodes created in object lits.
|
void |
setString(java.lang.String str)
sets the string content.
|
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, getDouble, 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, 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, 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, setDouble, setGeneratorMarker, setGeneratorSafe, setInputId, setIsAddedBlock, setIsArrowFunction, setIsGeneratorFunction, setIsSyntheticBlock, setJSDocInfo, setJSType, setLength, setLineno, setOptionalArg, setOriginalName, setPropListHead, setSideEffectFlags, setSideEffectFlags, setSourceEncodedPosition, setSourceEncodedPositionForTree, setSourceFileForTesting, setStaticMember, setStaticSourceFile, setType, setTypeI, setVarArgs, setYieldFor, siblings, srcref, srcrefTree, toString, toString, toStringTree, useSourceInfoFrom, useSourceInfoFromForTree, useSourceInfoIfMissingFrom, useSourceInfoIfMissingFromForTreeprivate static final long serialVersionUID
private java.lang.String str
StringNode(int type,
java.lang.String str)
StringNode(int type,
java.lang.String str,
int lineno,
int charno)
public java.lang.String getString()
public void setString(java.lang.String str)
boolean isEquivalentTo(Node node, boolean compareType, boolean recur, boolean jsDoc)
isEquivalentTo in class NodecompareType - 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 boolean isQuotedString()
isQuotedString in class Nodepublic void setQuotedString()
setQuotedString in class Nodepublic Node.StringNode cloneNode()