Java Code Examples for com.sun.tools.javac.code.Attribute#Error
The following examples show how to use
com.sun.tools.javac.code.Attribute#Error .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Annotate.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
private Attribute getAnnotationPrimitiveValue(Type expectedElementType, JCExpression tree, Env<AttrContext> env) { Type result = attr.attribTree(tree, env, annotationValueInfo(expectedElementType)); if (result.isErroneous()) return new Attribute.Error(result.getOriginalType()); if (result.constValue() == null) { log.error(tree.pos(), Errors.AttributeValueMustBeConstant); return new Attribute.Error(expectedElementType); } result = cfolder.coerce(result, expectedElementType); return new Attribute.Constant(expectedElementType, result.constValue()); }
Example 2
Source File: AnnotationValueImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 3
Source File: DPrinter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 4
Source File: DPrinter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 5
Source File: AnnotationValueImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 6
Source File: AnnotationValueImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { sb.append("<error>"); }
Example 7
Source File: DPrinter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 8
Source File: AnnotationValueImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { sb.append("<error>"); }
Example 9
Source File: AnnotationProxyMaker.java From javaide with GNU General Public License v3.0 | 4 votes |
public void visitError(Attribute.Error e) { value = null; // indicates a type mismatch }
Example 10
Source File: ClassReader.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void visitError(Attribute.Error e) { throw new AssertionError(); // shouldn't happen }
Example 11
Source File: AnnotationValueImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 12
Source File: DPrinter.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 13
Source File: AnnotationValueImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { sb.append("<error>"); }
Example 14
Source File: AnnotationValueImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 15
Source File: DPrinter.java From hottub with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 16
Source File: DPrinter.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 17
Source File: DPrinter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error a) { visitAttribute(a); }
Example 18
Source File: AnnotationValueImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 19
Source File: AnnotationValueImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }
Example 20
Source File: AnnotationValueImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void visitError(Attribute.Error e) { value = "<error>"; }