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
public abstract class Pattern extends java.lang.Object implements INode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringANY_STRING-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description Pattern()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description INodegetFirstChild()INodegetNextSibling()Role<?>getRole()booleanisNull()Matchmatch(INode other)booleanmatches(INode other)abstract booleanmatches(INode other, Match match)static booleanmatchesCollection(Role<?> role, INode firstPatternChild, INode firstOtherChild, Match match)booleanmatchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)static booleanmatchString(java.lang.String pattern, java.lang.String text)BlockStatementtoBlockStatement()CatchClausetoCatchClause()ExpressiontoExpression()MethodDeclarationtoMethodDeclaration()AstNodetoNode()ParameterDeclarationtoParameterDeclaration()StatementtoStatement()AstTypetoType()VariableInitializertoVariableInitializer()
-
-
-
Field Detail
-
ANY_STRING
public static final java.lang.String ANY_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
matchString
public static boolean matchString(java.lang.String pattern, java.lang.String text)
-
toNode
public final AstNode toNode()
-
toExpression
public final Expression toExpression()
-
toStatement
public final Statement toStatement()
-
toBlockStatement
public final BlockStatement toBlockStatement()
-
toCatchClause
public final CatchClause toCatchClause()
-
toVariableInitializer
public final VariableInitializer toVariableInitializer()
-
toParameterDeclaration
public final ParameterDeclaration toParameterDeclaration()
-
toMethodDeclaration
public final MethodDeclaration toMethodDeclaration()
-
toType
public final AstType toType()
-
getFirstChild
public INode getFirstChild()
- Specified by:
getFirstChildin interfaceINode
-
getNextSibling
public INode getNextSibling()
- Specified by:
getNextSiblingin interfaceINode
-
matchesCollection
public boolean matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)
- Specified by:
matchesCollectionin interfaceINode
-
-