Package com.strobel.decompiler.patterns
Class Repeat
- java.lang.Object
-
- com.strobel.decompiler.patterns.Pattern
-
- com.strobel.decompiler.patterns.Repeat
-
-
Field Summary
Fields Modifier and Type Field Description private int_maxCountprivate int_minCountprivate INode_node-
Fields inherited from class com.strobel.decompiler.patterns.Pattern
ANY_STRING
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxCount()intgetMinCount()INodegetNode()booleanmatches(INode other, Match match)booleanmatchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)voidsetMaxCount(int maxCount)voidsetMinCount(int minCount)-
Methods inherited from class com.strobel.decompiler.patterns.Pattern
getFirstChild, getNextSibling, getRole, isNull, match, matches, matchesCollection, matchString, toBlockStatement, toCatchClause, toExpression, toMethodDeclaration, toNode, toParameterDeclaration, toStatement, toType, toVariableInitializer
-
-
-
-
Field Detail
-
_node
private final INode _node
-
_minCount
private int _minCount
-
_maxCount
private int _maxCount
-
-
Constructor Detail
-
Repeat
public Repeat(INode node)
-
-
Method Detail
-
getNode
public final INode getNode()
-
getMinCount
public final int getMinCount()
-
setMinCount
public final void setMinCount(int minCount)
-
getMaxCount
public final int getMaxCount()
-
setMaxCount
public final void setMaxCount(int maxCount)
-
matchesCollection
public final boolean matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)
- Specified by:
matchesCollectionin interfaceINode- Overrides:
matchesCollectionin classPattern
-
-