Package com.google.errorprone.util
Class Commented<T extends com.sun.source.tree.Tree>
java.lang.Object
com.google.errorprone.util.Commented<T>
public abstract class Commented<T extends com.sun.source.tree.Tree> extends Object
Class to hold AST nodes annotated with the comments that are associated with them
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Commented.Position
Identifies the position of a comment relative to the associated treenode. -
Constructor Summary
Constructors Constructor Description Commented()
-
Method Summary
Modifier and Type Method Description abstract com.google.common.collect.ImmutableList<com.sun.tools.javac.parser.Tokens.Comment>
afterComments()
abstract com.google.common.collect.ImmutableList<com.sun.tools.javac.parser.Tokens.Comment>
beforeComments()
abstract T
tree()
-
Constructor Details
-
Commented
public Commented()
-
-
Method Details
-
tree
-
beforeComments
public abstract com.google.common.collect.ImmutableList<com.sun.tools.javac.parser.Tokens.Comment> beforeComments() -
afterComments
public abstract com.google.common.collect.ImmutableList<com.sun.tools.javac.parser.Tokens.Comment> afterComments()
-