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()booleanisNull()final Matchfinal booleanabstract booleanstatic booleanmatchesCollection(Role<?> role, INode firstPatternChild, INode firstOtherChild, Match match) booleanmatchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo) static booleanmatchString(String pattern, String text) final BlockStatementfinal CatchClausefinal Expressionfinal MethodDeclarationfinal AstNodetoNode()final ParameterDeclarationfinal Statementfinal AstTypetoType()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:
getFirstChildin interfaceINode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceINode
-
matches
-
matchesCollection
public boolean matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo) - Specified by:
matchesCollectionin interfaceINode
-
match
-
matches
-
matchesCollection
-