Package com.strobel.decompiler.patterns
Class Pattern
java.lang.Object
com.strobel.decompiler.patterns.Pattern
- All Implemented Interfaces:
INode
- Direct Known Subclasses:
AllMatch
,AnyNode
,AssignmentChain
,AstTypeMatch
,BackReference
,Choice
,DeclaredVariableBackReference
,IdentifierBackReference
,IdentifierExpressionRegexNode
,LeftmostBinaryOperandNode
,MemberReferenceExpressionRegexNode
,MemberReferenceTypeNode
,NamedNode
,OptionalNode
,ParameterReferenceNode
,Repeat
,SingleOrBinaryAggregateNode
,SubtreeMatch
,TypedExpression
,TypedLiteralNode
,TypedNode
-
Field Summary
FieldsFields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRole
<?> getRole()
boolean
isNull()
final Match
final boolean
abstract boolean
static boolean
matchesCollection
(Role<?> role, INode firstPatternChild, INode firstOtherChild, Match match) boolean
matchesCollection
(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo) static boolean
matchString
(String pattern, String text) final BlockStatement
final CatchClause
final Expression
final MethodDeclaration
final AstNode
toNode()
final ParameterDeclaration
final Statement
final AstType
toType()
final VariableInitializer
-
Field Details
-
ANY_STRING
- See Also:
-
-
Constructor Details
-
Pattern
public Pattern()
-
-
Method Details
-
matchString
-
toNode
-
toExpression
-
toStatement
-
toBlockStatement
-
toCatchClause
-
toVariableInitializer
-
toParameterDeclaration
-
toMethodDeclaration
-
toType
-
isNull
public boolean isNull() -
getRole
-
getFirstChild
- Specified by:
getFirstChild
in interfaceINode
-
getNextSibling
- Specified by:
getNextSibling
in interfaceINode
-
matches
-
matchesCollection
public boolean matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo) - Specified by:
matchesCollection
in interfaceINode
-
match
-
matches
-
matchesCollection
-