Search in sources :

Example 1 with IntersectionType

use of com.google.devtools.j2objc.ast.IntersectionType in project j2objc by google.

the class TreeConverter method convertIntersectionType.

private static TreeNode convertIntersectionType(org.eclipse.jdt.core.dom.IntersectionType node) {
    TypeMirror type = BindingConverter.getType(node.resolveBinding());
    IntersectionType newNode = new IntersectionType(type);
    for (Object x : node.types()) {
        newNode.addType((Type) convert(x));
    }
    return newNode;
}
Also used : IntersectionType(com.google.devtools.j2objc.ast.IntersectionType) TypeMirror(javax.lang.model.type.TypeMirror)

Aggregations

IntersectionType (com.google.devtools.j2objc.ast.IntersectionType)1 TypeMirror (javax.lang.model.type.TypeMirror)1