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 classAMatcherthat 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 MatcherReturns a Matcher that returns true only if all of the provided matchers match.static MatcherReturns a Matcher that returns true if any of the provided matchers match.static MatcherMatchers.anything()Returns a Matcher that matches every node.static MatcherMatchers.assignmentWithRhs(Matcher rhsMatcher) Returns a Matcher that matches an ASSIGN node where the RHS of the assignment matches the given rhsMatcher.static MatcherMatchers.constructor()Returns a matcher that matches any constructor definitions.static MatcherMatchers.constructor(@Nullable String name) Returns a matcher that matches constructor definitions of the specified name.static MatcherMatchers.constructorPropertyDeclaration()Returns a Matcher that matches against properties that are declared in the constructor.static MatcherMatchers.enumDefinition()Returns a Matcher that matches definitions of any enum.static MatcherMatchers.enumDefinitionOfType(String type) Returns a Matcher that matches definitions of an enum of the given type.static MatcherMatchers.functionCall()Returns a Matcher that matches any function call.static MatcherMatchers.functionCall(@Nullable String name) Returns a Matcher that matches all nodes that are function calls that match the provided name.static MatcherMatchers.functionCallWithNumArgs(int numArgs) Returns a Matcher that matches any function call that has the given number of arguments.static MatcherMatchers.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 MatcherMatchers.googForwardDeclare()static MatcherMatchers.googModule()static MatcherMatchers.googModuleOrProvide()static MatcherMatchers.googRequire()static MatcherMatchers.googRequirelike()static MatcherMatchers.googRequirelike(String namespace) static MatcherMatchers.googRequireType()static MatcherMatchers.isPrivate()Returns a Matcher that matches against nodes that are declared@private.static MatcherReturns a Matcher that matches nodes that contain JS Doc that specify the@typeannotation equivalent to the provided type.static MatcherMatchers.newClass()Returns a Matcher that matches constructing new objects.static MatcherReturns a Matcher that matches constructing objects of the provided class name.static MatcherReturns a Matcher that matches the opposite of the provided matcher.static MatcherMatchers.propertyAccess()Returns a Matcher that matches any property access.static MatcherMatchers.propertyAccess(@Nullable String name) Returns a Matcher that matches nodes representing a GETPROP access of an object property.static MatcherMatchers.prototypeMethodDeclaration()Returns a Matcher that matches a declaration of a method on the prototype of a class.static MatcherMatchers.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 MatcherReturns a Matcher that returns true only if all of the provided matchers match.static MatcherReturns a Matcher that returns true if any of the provided matchers match.static MatcherMatchers.assignmentWithRhs(Matcher rhsMatcher) Returns a Matcher that matches an ASSIGN node where the RHS of the assignment matches the given rhsMatcher.static MatcherReturns a Matcher that matches the opposite of the provided matcher.