Package com.google.errorprone.refaster

  • Interface Summary
    Interface Description
    Unifiable<T>
    A serializable representation of a template that can be matched against a target of type T.
    UStatement
    UTree representation of a StatementTree.
  • Class Summary
    Class Description
    Bindings
    A type-safe map from objects of type Bindings.Key<V>, which consist of a String key and a Bindings.Key subclass, to values of type V.
    Bindings.Key<V>
    A key type for a Binding.
    BlockTemplate
    Template representing a sequence of consecutive statements.
    Choice<T>
    A representation of a choice with zero or more options, which may be evaluated lazily or strictly.
    ControlFlowVisitor
    Analyzes a series of statements to determine whether they don't, sometimes, or never return.
    ExpressionTemplate
    Implementation of a template to match and replace an expression anywhere in an AST.
    Inliner
    A context representing all the dependencies necessary to reconstruct a pretty-printable source tree from a UTree based on a set of substitutions.
    LocalVarBinding
    Binding for a local variable in a template.
    Refaster
    Static utilities to indicate special handling in Refaster templates.
    RefasterRule<M extends TemplateMatch,​T extends Template<M>>
    A representation of an entire Refaster rule, corresponding to a class with @BeforeTemplates and @AfterTemplates.
    RefasterRuleBuilderScanner
    Scanner implementation to extract a single Refaster rule from a ClassTree.
    RefasterRuleCompiler
    A javac plugin that compiles Refaster rules to a .analyzer file.
    RefasterRuleCompilerAnalyzer
    TaskListener that receives compilation of a Refaster rule class and outputs a serialized analyzer to the specified path.
    StringName
    A simple wrapper to view a String as a Name.
    Template<M extends TemplateMatch>
    Abstract superclass for templates that can be used to search and replace in a Java syntax tree.
    TemplateMatch
    Abstract type representing a match against a Template.
    UAnyOf
    UExpression allowing a match against any of a list of expressions.
    UClassType
    A representation of a type with optional generic parameters.
    UExpression
    UTree version of ExpressionTree.
    UForAll
    UType version of Type.ForAll.
    UFreeIdent
    Free identifier that can be bound to any expression of the appropriate type.
    UIntersectionClassType
    UType representation of an IntersectionClassType.
    ULiteral
    UTree version of LiteralTree.
    UMemberSelect
    UTree version of MemberSelectTree.
    UMethodInvocation
    UTree version of MethodInvocationTree.
    UMethodType
    A UType representation of a Type.MethodType.
    Unifier
    A mutable representation of an attempt to match a template source tree against a target source tree.
    UPlaceholderExpression
    UTree representation of an invocation of a placeholder method.
    UPlaceholderExpression.PlaceholderParamIdent  
    UReturn
    UTree representation of a ReturnTree.
    UStatement.UnifierWithUnconsumedStatements
    Tuple of a Unifier and a list of statements that are still waiting to be matched.
    UStaticIdent
    Identifier representing a static member (field, method, etc.) on a class.
    UTemplater
    Converts a type-checked syntax tree to a portable UTree template.
    UTree<T extends com.sun.tools.javac.tree.JCTree>
    A serializable representation of a template syntax tree which can be unified with a target AST and inlined based on a set of substitutions.
    UType
    A serializable representation of a type template, used for enforcing type constraints on target ASTs.
    UTypeVar
    UType version of Type.TypeVar.
    UTypeVar.Key
    Bindings key linked to a UTypeVar.
    UTypeVar.TypeWithExpression
    Tuple of an expression with an associated type.
    UVariableDecl
    A UTree representation of a local variable declaration.
  • Enum Summary
    Enum Description
    ControlFlowVisitor.Result
    The state of whether a sequence of statements may return, break out of the visited statements, or neither.
    ImportPolicy
    Policy specifying when and how to import classes when inlining types.
  • Exception Summary
    Exception Description
    CouldNotResolveImportException
    Exception thrown when a class symbol could not be resolved by the compiler.