public class RegExpLiteralNode extends LiteralNode implements IRegExpLiteralNode
IRegExpLiteralNode.RegExpFlagILiteralNode.LiteralTypetype, valueemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
|
RegExpLiteralNode(ASToken t,
IProblemReporter reporter)
Constructor.
|
protected |
RegExpLiteralNode(RegExpLiteralNode other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected RegExpLiteralNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
Set<IRegExpLiteralNode.RegExpFlag> |
getFlags()
Returns a set of flags that are set on this regular expression, or an
empty set
|
String |
getFlagString()
Returns a String of flags that are set on this regular expression, or an
empty String
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getValue()
Returns the value of this literal as a String
|
String |
getValue(boolean rawValue)
Returns the value of this literal as a String
|
boolean |
hasFlag(IRegExpLiteralNode.RegExpFlag flag)
Determines if a specific flag is set on this regular expression
|
buildInnerString, getLiteralType, isDynamicExpression, isSynthetic, isTerminal, normalize, resolveType, setSyntheticcomputeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, resolve, setHasParenthesisanalyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getChild, getChildCount, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLiteralTypecopyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveTypecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic RegExpLiteralNode(ASToken t, IProblemReporter reporter)
t - The token representing the RegExp literal.reporter - The object used for reporting compiler problems.protected RegExpLiteralNode(RegExpLiteralNode other)
other - The node to copy.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class LiteralNodeprotected RegExpLiteralNode copy()
ExpressionNodeBasecopy in class LiteralNodepublic String getValue()
ILiteralNodegetValue in interface ILiteralNodegetValue in class LiteralNodepublic String getValue(boolean rawValue)
ILiteralNodegetValue in interface ILiteralNodegetValue in class LiteralNoderawValue - True if you want the raw value, otherwise some massaging
of the value will be done before returning the value if it's a String
(enclosing quotes will be removed).public Set<IRegExpLiteralNode.RegExpFlag> getFlags()
IRegExpLiteralNodegetFlags in interface IRegExpLiteralNodeIRegExpLiteralNode.RegExpFlag optionspublic String getFlagString()
IRegExpLiteralNodegetFlagString in interface IRegExpLiteralNodeIRegExpLiteralNode.RegExpFlag optionspublic boolean hasFlag(IRegExpLiteralNode.RegExpFlag flag)
IRegExpLiteralNodehasFlag in interface IRegExpLiteralNodeflag - the IRegExpLiteralNode.RegExpFlag whose existence we are testing forCopyright © 2016 The Apache Software Foundation. All rights reserved.