Search in sources :

Example 1 with IntersectionType

use of org.eclipse.jdt.core.dom.IntersectionType in project generator by mybatis.

the class TypeStringifier method visit.

@SuppressWarnings("unchecked")
@Override
public boolean visit(IntersectionType node) {
    for (Iterator<Type> it = node.types().iterator(); it.hasNext(); ) {
        Type t = it.next();
        t.accept(this);
        if (it.hasNext()) {
            // $NON-NLS-1$
            buffer.append(" & ");
        }
    }
    return false;
}
Also used : NameQualifiedType(org.eclipse.jdt.core.dom.NameQualifiedType) IntersectionType(org.eclipse.jdt.core.dom.IntersectionType) WildcardType(org.eclipse.jdt.core.dom.WildcardType) SimpleType(org.eclipse.jdt.core.dom.SimpleType) Type(org.eclipse.jdt.core.dom.Type) UnionType(org.eclipse.jdt.core.dom.UnionType) QualifiedType(org.eclipse.jdt.core.dom.QualifiedType) PrimitiveType(org.eclipse.jdt.core.dom.PrimitiveType) ArrayType(org.eclipse.jdt.core.dom.ArrayType) ParameterizedType(org.eclipse.jdt.core.dom.ParameterizedType)

Aggregations

ArrayType (org.eclipse.jdt.core.dom.ArrayType)1 IntersectionType (org.eclipse.jdt.core.dom.IntersectionType)1 NameQualifiedType (org.eclipse.jdt.core.dom.NameQualifiedType)1 ParameterizedType (org.eclipse.jdt.core.dom.ParameterizedType)1 PrimitiveType (org.eclipse.jdt.core.dom.PrimitiveType)1 QualifiedType (org.eclipse.jdt.core.dom.QualifiedType)1 SimpleType (org.eclipse.jdt.core.dom.SimpleType)1 Type (org.eclipse.jdt.core.dom.Type)1 UnionType (org.eclipse.jdt.core.dom.UnionType)1 WildcardType (org.eclipse.jdt.core.dom.WildcardType)1