Package com.google.turbine.type
Class AnnoInfo
- java.lang.Object
-
- com.google.turbine.type.AnnoInfo
-
public class AnnoInfo extends java.lang.ObjectAn annotation use.
-
-
Constructor Summary
Constructors Constructor Description AnnoInfo(SourceFile source, ClassSymbol sym, Tree.Anno tree, com.google.common.collect.ImmutableMap<java.lang.String,Const> values)
-
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.booleanequals(@Nullable java.lang.Object obj)inthashCode()intposition()The annotation's diagnostic position.SourceFilesource()The annotation's source, for diagnostics.ClassSymbolsym()The annotation's declaration.java.lang.StringtoString()Tree.Annotree()com.google.common.collect.ImmutableMap<java.lang.String,Const>values()Bound element-value pairs.AnnoInfowithValues(com.google.common.collect.ImmutableMap<java.lang.String,Const> values)
-
-
-
Constructor Detail
-
AnnoInfo
public AnnoInfo(SourceFile source, ClassSymbol sym, Tree.Anno tree, com.google.common.collect.ImmutableMap<java.lang.String,Const> values)
-
-
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.
-
tree
public Tree.Anno tree()
-
withValues
public AnnoInfo withValues(com.google.common.collect.ImmutableMap<java.lang.String,Const> values)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@Nullable java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-