Java Code Examples for javax.lang.model.type.ErrorType#asElement()

The following examples show how to use javax.lang.model.type.ErrorType#asElement() . 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: JavaSymbolProvider.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Boolean p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        return DEFAULT_VALUE.append((p ? te.getQualifiedName() : te.getSimpleName()).toString());
    }
    return DEFAULT_VALUE;
}
 
Example 2
Source File: TypeUtilities.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Boolean p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        return DEFAULT_VALUE.append((p ? te.getQualifiedName() : te.getSimpleName()).toString());
    }
    return DEFAULT_VALUE;
}
 
Example 3
Source File: SpringXMLConfigCompletionItem.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Boolean p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        return DEFAULT_VALUE.append((p ? te.getQualifiedName() : te.getSimpleName()).toString());
    }
    return DEFAULT_VALUE;
}
 
Example 4
Source File: AutoImport.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitError(ErrorType type, Void p) {
    Element e = type.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        builder.append(te.getSimpleName());            
    }
    return null;
}
 
Example 5
Source File: MethodModelSupport.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Boolean p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        return DEFAULT_VALUE.append((p ? te.getQualifiedName() : te.getSimpleName()).toString());
    }
    return DEFAULT_VALUE;
}
 
Example 6
Source File: Utilities.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Boolean p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement)e;
        return DEFAULT_VALUE.append((p ? te.getQualifiedName() : te.getSimpleName()).toString());
    }
    return DEFAULT_VALUE;
}
 
Example 7
Source File: Utilities.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuilder visitError(ErrorType t, Void p) {
    Element e = t.asElement();
    if (e instanceof TypeElement) {
        TypeElement te = (TypeElement) e;
        return DEFAULT_VALUE.append(te.getQualifiedName().toString());
    }
    return DEFAULT_VALUE;
}
 
Example 8
Source File: MoreTypes.java    From auto-parcel with Apache License 2.0 4 votes vote down vote up
@Override
public Element visitError(ErrorType t, Void p) {
    return t.asElement();
}
 
Example 9
Source File: Environment.java    From sqlitemagic with Apache License 2.0 4 votes vote down vote up
@Override
public Element visitError(ErrorType t, Void p) {
  return t.asElement();
}
 
Example 10
Source File: BuilderSpec.java    From RetroFacebook with Apache License 2.0 4 votes vote down vote up
@Override public Element visitError(ErrorType t, Void p) {
  return t.asElement();
}
 
Example 11
Source File: BuilderSpec.java    From RetroFacebook with Apache License 2.0 4 votes vote down vote up
@Override public Element visitError(ErrorType t, Void p) {
  return t.asElement();
}
 
Example 12
Source File: BuilderSpec.java    From SimpleWeibo with Apache License 2.0 4 votes vote down vote up
@Override public Element visitError(ErrorType t, Void p) {
  return t.asElement();
}
 
Example 13
Source File: ClasspathScanner.java    From revapi with Apache License 2.0 4 votes vote down vote up
@Override
public TypeElement visitError(ErrorType t, Void aVoid) {
    return (TypeElement) t.asElement();
}
 
Example 14
Source File: MoreTypes.java    From auto with Apache License 2.0 4 votes vote down vote up
@Override
public Element visitError(ErrorType t, Void p) {
  return t.asElement();
}