Uses of Interface
com.google.javascript.refactoring.Matcher
Packages that use Matcher
-
Uses of Matcher in com.google.javascript.refactoring
Classes in com.google.javascript.refactoring that implement MatcherModifier and TypeClassDescriptionfinal class
AMatcher
that can take arbitrary JS source code and use it as a template to find matches in other source code.Methods in com.google.javascript.refactoring that return MatcherModifier and TypeMethodDescriptionstatic Matcher
Returns a Matcher that returns true only if all of the provided matchers match.static Matcher
Returns a Matcher that returns true if any of the provided matchers match.static Matcher
Matchers.anything()
Returns a Matcher that matches every node.static Matcher
Matchers.assignmentWithRhs
(Matcher rhsMatcher) Returns a Matcher that matches an ASSIGN node where the RHS of the assignment matches the given rhsMatcher.static Matcher
Matchers.constructor()
Returns a matcher that matches any constructor definitions.static Matcher
Matchers.constructor
(@Nullable String name) Returns a matcher that matches constructor definitions of the specified name.static Matcher
Matchers.constructorPropertyDeclaration()
Returns a Matcher that matches against properties that are declared in the constructor.static Matcher
Matchers.enumDefinition()
Returns a Matcher that matches definitions of any enum.static Matcher
Matchers.enumDefinitionOfType
(String type) Returns a Matcher that matches definitions of an enum of the given type.static Matcher
Matchers.functionCall()
Returns a Matcher that matches any function call.static Matcher
Matchers.functionCall
(@Nullable String name) Returns a Matcher that matches all nodes that are function calls that match the provided name.static Matcher
Matchers.functionCallWithNumArgs
(int numArgs) Returns a Matcher that matches any function call that has the given number of arguments.static Matcher
Matchers.functionCallWithNumArgs
(String name, int numArgs) Returns a Matcher that matches any function call that has the given number of arguments and the given name.static Matcher
Matchers.googForwardDeclare()
static Matcher
Matchers.googModule()
static Matcher
Matchers.googModuleOrProvide()
static Matcher
Matchers.googRequire()
static Matcher
Matchers.googRequirelike()
static Matcher
Matchers.googRequirelike
(String namespace) static Matcher
Matchers.googRequireType()
static Matcher
Matchers.isPrivate()
Returns a Matcher that matches against nodes that are declared@private
.static Matcher
Returns a Matcher that matches nodes that contain JS Doc that specify the@type
annotation equivalent to the provided type.static Matcher
Matchers.newClass()
Returns a Matcher that matches constructing new objects.static Matcher
Returns a Matcher that matches constructing objects of the provided class name.static Matcher
Returns a Matcher that matches the opposite of the provided matcher.static Matcher
Matchers.propertyAccess()
Returns a Matcher that matches any property access.static Matcher
Matchers.propertyAccess
(@Nullable String name) Returns a Matcher that matches nodes representing a GETPROP access of an object property.static Matcher
Matchers.prototypeMethodDeclaration()
Returns a Matcher that matches a declaration of a method on the prototype of a class.static Matcher
Matchers.prototypeVariableDeclaration()
Returns a Matcher that matches a declaration of a variable on the prototype of a class.Methods in com.google.javascript.refactoring with parameters of type MatcherModifier and TypeMethodDescriptionstatic Matcher
Returns a Matcher that returns true only if all of the provided matchers match.static Matcher
Returns a Matcher that returns true if any of the provided matchers match.static Matcher
Matchers.assignmentWithRhs
(Matcher rhsMatcher) Returns a Matcher that matches an ASSIGN node where the RHS of the assignment matches the given rhsMatcher.static Matcher
Returns a Matcher that matches the opposite of the provided matcher.