Package com.strobel.decompiler.patterns
Class OptionalNode
- java.lang.Object
-
- com.strobel.decompiler.patterns.Pattern
-
- com.strobel.decompiler.patterns.OptionalNode
-
-
Field Summary
Fields Modifier and Type Field Description private INode
_node
-
Fields inherited from class com.strobel.decompiler.patterns.Pattern
ANY_STRING
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description OptionalNode(INode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INode
getNode()
boolean
matches(INode other, Match match)
boolean
matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)
-
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
-
-
Constructor Detail
-
OptionalNode
public OptionalNode(INode node)
-
-
Method Detail
-
getNode
public final INode getNode()
-
matchesCollection
public final boolean matchesCollection(Role<?> role, INode position, Match match, BacktrackingInfo backtrackingInfo)
- Specified by:
matchesCollection
in interfaceINode
- Overrides:
matchesCollection
in classPattern
-
-