public interface IRegExpLiteralNode extends ILiteralNode
RegExp
literal such as /abc/gi
.
This node has no children.
Modifier and Type | Interface and Description |
---|---|
static class |
IRegExpLiteralNode.RegExpFlag
Represents a flag set on a Regular Expression
|
ILiteralNode.LiteralType
UNKNOWN
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
hasFlag(IRegExpLiteralNode.RegExpFlag flag)
Determines if a specific flag is set on this regular expression
|
getLiteralType, getValue, getValue
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
Set<IRegExpLiteralNode.RegExpFlag> getFlags()
IRegExpLiteralNode.RegExpFlag
optionsString getFlagString()
IRegExpLiteralNode.RegExpFlag
optionsboolean hasFlag(IRegExpLiteralNode.RegExpFlag flag)
flag
- the IRegExpLiteralNode.RegExpFlag
whose existence we are testing forCopyright © 2016 The Apache Software Foundation. All rights reserved.