
public final class JsRegExp extends JsValueLiteral
| Constructor and Description |
|---|
JsRegExp(SourceInfo sourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
String |
getFlags() |
NodeKind |
getKind() |
String |
getPattern() |
int |
hashCode() |
boolean |
isBooleanFalse() |
boolean |
isBooleanTrue() |
boolean |
isDefinitelyNotNull()
True if the target expression is definitely not null.
|
boolean |
isDefinitelyNull()
True if the target expression is definitely null.
|
boolean |
isInternable()
Return true if the literal can be interned.
|
void |
setFlags(String suffix) |
void |
setPattern(String re) |
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
hasSideEffects, isLeafmakeStmtgetSourceInfo, setSourceInfo, toSource, toSource, toStringpublic JsRegExp(SourceInfo sourceInfo)
public String getFlags()
public String getPattern()
public boolean isBooleanFalse()
public boolean isBooleanTrue()
public boolean isDefinitelyNotNull()
JsExpressionisDefinitelyNotNull in class JsExpressionpublic boolean isDefinitelyNull()
JsExpressionisDefinitelyNull in class JsExpressionpublic boolean isInternable()
JsLiteralisInternable in class JsLiteralpublic void setFlags(String suffix)
public void setPattern(String re)
public void traverse(JsVisitor v, JsContext ctx)
JsVisitablev - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.