Class AnnoInfo


  • public class AnnoInfo
    extends java.lang.Object
    An annotation use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.collect.ImmutableList<Tree.Expression> args()
      Arguments, either assignments or a single expression.
      boolean equals​(@Nullable java.lang.Object obj)  
      int hashCode()  
      int position()
      The annotation's diagnostic position.
      SourceFile source()
      The annotation's source, for diagnostics.
      ClassSymbol sym()
      The annotation's declaration.
      java.lang.String toString()  
      Tree.Anno tree()  
      com.google.common.collect.ImmutableMap<java.lang.String,​Const> values()
      Bound element-value pairs.
      AnnoInfo withValues​(com.google.common.collect.ImmutableMap<java.lang.String,​Const> values)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • source

        public SourceFile source()
        The annotation's source, for diagnostics.
      • position

        public int position()
        The annotation's diagnostic position.
      • args

        public com.google.common.collect.ImmutableList<Tree.Expression> args()
        Arguments, either assignments or a single expression.
      • values

        public com.google.common.collect.ImmutableMap<java.lang.String,​Const> values()
        Bound element-value pairs.
      • sym

        public ClassSymbol sym()
        The annotation's declaration.
      • withValues

        public AnnoInfo withValues​(com.google.common.collect.ImmutableMap<java.lang.String,​Const> values)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object