Package com.strobel.decompiler.patterns
Class Choice
- java.lang.Object
-
- com.strobel.decompiler.patterns.Pattern
-
- com.strobel.decompiler.patterns.Choice
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<INode>
_alternatives
-
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 void
add(INode alternative)
void
add(java.lang.String name, INode alternative)
java.util.Iterator<INode>
iterator()
boolean
matches(INode other, Match match)
-
Methods inherited from class com.strobel.decompiler.patterns.Pattern
getFirstChild, getNextSibling, getRole, isNull, match, matches, matchesCollection, matchesCollection, matchString, toBlockStatement, toCatchClause, toExpression, toMethodDeclaration, toNode, toParameterDeclaration, toStatement, toType, toVariableInitializer
-
-
-
-
Field Detail
-
_alternatives
private final java.util.ArrayList<INode> _alternatives
-
-
Constructor Detail
-
Choice
public Choice()
-
Choice
public Choice(INode... alternatives)
-
-