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
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
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 3
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 4
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 5
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 6
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 7
Source Project: jdk8u60   File: DPrinter.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 8
Source Project: hottub   File: DPrinter.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 9
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 10
public void visitError(Attribute.Error e) {
    sb.append("<error>");
}
 
Example 11
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 12
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 13
public void visitError(Attribute.Error e) {
    throw new AssertionError(); // shouldn't happen
}
 
Example 14
public void visitError(Attribute.Error e) {
    value = null;       // indicates a type mismatch
}
 
Example 15
public void visitError(Attribute.Error e) {
    sb.append("<error>");
}
 
Example 16
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 17
public void visitError(Attribute.Error e) {
    sb.append("<error>");
}
 
Example 18
public void visitError(Attribute.Error e) {
    value = "<error>";
}
 
Example 19
Source Project: openjdk-8   File: DPrinter.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}
 
Example 20
public void visitError(Attribute.Error a) {
    visitAttribute(a);
}