Lines Matching refs:type
33 import javax.lang.model.type.DeclaredType;
48 /** The type of the annotation element. */
49 public Type type;
51 public Attribute(Type type) {
52 this.type = type;
66 /** The value for an annotation element of primitive type or String. */
70 public Constant(Type type, Object value) {
71 super(type);
75 return Constants.format(value, type);
78 return Constants.decode(value, type);
85 switch (type.tag) {
93 switch (type.tag) {
102 /** The value for an annotation element of type java.lang.Class,
106 public final Type type;
108 public Class(Types types, Type type) {
109 super(makeClassType(types, type));
110 this.type = type;
112 static Type makeClassType(Types types, Type type) {
113 Type arg = type.isPrimitive()
114 ? types.boxedClass(type).type
115 : types.erasure(type);
121 return type + ".class";
124 return type;
127 return v.visitType(type, p);
131 /** A compound annotation element value, the type of which is an
141 public Compound(Type type,
143 super(type);
159 buf.append(type);
195 return (DeclaredType) type;
207 /** The value for an annotation element of an array type.
211 public Array(Type type, Attribute[] values) {
212 super(type);
237 /** The value for an annotation element of an enum type.
241 public Enum(Type type, VarSymbol value) {
242 super(type);
258 public Error(Type type) {
259 super(type);
273 /** A visitor type for dynamic dispatch on the kind of attribute value. */