Search in sources :

Example 1 with WildcardType

use of org.eclipse.ceylon.langtools.tools.javac.code.Type.WildcardType in project ceylon by eclipse.

the class JavacType method getLowerBound.

@Override
public TypeMirror getLowerBound() {
    if (!lowerBoundSet && type instanceof WildcardType) {
        Type bound = ((WildcardType) type).getSuperBound();
        if (bound != null) {
            lowerBound = new JavacType(bound);
        }
        lowerBoundSet = true;
    }
    return lowerBound;
}
Also used : WildcardType(org.eclipse.ceylon.langtools.tools.javac.code.Type.WildcardType) WildcardType(org.eclipse.ceylon.langtools.tools.javac.code.Type.WildcardType) Type(org.eclipse.ceylon.langtools.tools.javac.code.Type) ArrayType(org.eclipse.ceylon.langtools.tools.javac.code.Type.ArrayType)

Aggregations

Type (org.eclipse.ceylon.langtools.tools.javac.code.Type)1 ArrayType (org.eclipse.ceylon.langtools.tools.javac.code.Type.ArrayType)1 WildcardType (org.eclipse.ceylon.langtools.tools.javac.code.Type.WildcardType)1