public abstract class Pattern extends java.lang.Object implements INode
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_STRING |
CHILD_ITERATOR| Constructor and Description |
|---|
Pattern() |
| Modifier and Type | Method and Description |
|---|---|
INode |
getFirstChild() |
INode |
getNextSibling() |
Role |
getRole() |
boolean |
isNull() |
Match |
match(INode other) |
boolean |
matches(INode other) |
abstract boolean |
matches(INode other,
Match match) |
static boolean |
matchesCollection(Role<?> role,
INode firstPatternChild,
INode firstOtherChild,
Match match) |
boolean |
matchesCollection(Role role,
INode position,
Match match,
BacktrackingInfo backtrackingInfo) |
static boolean |
matchString(java.lang.String pattern,
java.lang.String text) |
BlockStatement |
toBlockStatement() |
CatchClause |
toCatchClause() |
Expression |
toExpression() |
AstNode |
toNode() |
ParameterDeclaration |
toParameterDeclaration() |
Statement |
toStatement() |
AstType |
toType() |
VariableInitializer |
toVariableInitializer() |
public static final java.lang.String ANY_STRING
public static boolean matchString(java.lang.String pattern,
java.lang.String text)
public final AstNode toNode()
public final Expression toExpression()
public final Statement toStatement()
public final BlockStatement toBlockStatement()
public final CatchClause toCatchClause()
public final VariableInitializer toVariableInitializer()
public final ParameterDeclaration toParameterDeclaration()
public final AstType toType()
public INode getFirstChild()
getFirstChild in interface INodepublic INode getNextSibling()
getNextSibling in interface INodepublic boolean matchesCollection(Role role, INode position, Match match, BacktrackingInfo backtrackingInfo)
matchesCollection in interface INode