Class Commented<T extends Tree>

java.lang.Object
com.google.errorprone.util.Commented<T>

public abstract class Commented<T extends 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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Commented

      public Commented()
  • Method Details

    • tree

      public abstract T 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()