Package com.google.errorprone.util
package com.google.errorprone.util
Utility code.
-
ClassDescriptionThis class contains utility methods to work with the javac AST.Scanner for determining what types are thrown by a tree.An expression's target type, see
ASTHelpers.targetType(com.google.errorprone.VisitorState)
.Commented<T extends com.sun.source.tree.Tree>Class to hold AST nodes annotated with the comments that are associated with themIdentifies the position of a comment relative to the associated treenode.Utilities for attaching comments to relevant AST nodesWraps aTokens.Comment
to allow an offset source position to be reported.A compatibility wrapper forTokens.Comment.CommentStyle
.A compatibility wrapper aroundcom.sun.tools.javac.util.Filter
Wraps a javacTokens.Token
to return comments in declaration order.A utility for tokenizing and preserving comments.A helper class to find all identifiers in scope at a given program point.Annotation-related utilities.The precedence for an operator kind in theinvalid reference
com.sun.source.tree
An implementation of JLS 14.21 reachability.Utilities for checks that work with regexes.This class is responsible for analyzing an expression and telling if the expression can have side effects.Signature generation.A factory for Escaper instances used to escape strings for safe use in Java.JDK source version utilities.Describes visibilities available via VisibleForTesting annotations, and provides methods to establish whether a givenTree
should be visible.