public final class GoogBindToArrow extends Scanner
| Constructor and Description |
|---|
GoogBindToArrow() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Node node,
NodeMetadata metadata)
Returns true if the given node and node traversal should match for this
particular scanner.
|
com.google.common.collect.ImmutableList<SuggestedFix> |
processMatch(Match match)
Processes one
Match at a time. |
processAllMatchespublic boolean matches(Node node, NodeMetadata metadata)
ScannerMatcher class
or predefined matchers from Matchers to match against the Node and
NodeMetadata.
If this function returns true, a Match for this node will be passed
to Scanner.processMatch(Match) and all matches will be passed to
Scanner.processAllMatches(Collection) at the end of the traversal.public com.google.common.collect.ImmutableList<SuggestedFix> processMatch(Match match)
ScannerMatch at a time. There is no order guaranteed for
when this function will be called with the Match.processMatch in class Scannermatch - The Match from the node and traversal for any match
that Scanner.matches(com.google.javascript.rhino.Node, com.google.javascript.refactoring.NodeMetadata) returned true for.SuggestedFix classes that will be applied to the
source files at the end of the run to create the refactoring CL.Copyright © 2009-2020 Google. All Rights Reserved.