Java Code Examples for com.sun.tools.classfile.Type.TypeParamType

The following examples show how to use com.sun.tools.classfile.Type.TypeParamType. These examples are extracted from open source projects. 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 Project: TencentKona-8   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 2
Source Project: jdk8u60   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 3
Source Project: openjdk-jdk8u   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 4
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 5
Source Project: openjdk-jdk9   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
@Override
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 6
Source Project: hottub   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 7
Source Project: openjdk-8-source   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 8
Source Project: openjdk-8   Source File: ClassWriter.java    License: GNU General Public License v2.0 6 votes vote down vote up
public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) {
    sb.append(type.name);
    String sep = " extends ";
    if (type.classBound != null
            && (options.verbose || !type.classBound.isObject())) {
        sb.append(sep);
        append(sb, type.classBound);
        sep = " & ";
    }
    if (type.interfaceBounds != null) {
        for (Type bound: type.interfaceBounds) {
            sb.append(sep);
            append(sb, bound);
            sep = " & ";
        }
    }
    return sb;
}
 
Example 9
Source Project: TencentKona-8   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 10
Source Project: jdk8u60   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 11
Source Project: openjdk-jdk8u   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 12
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 13
Source Project: openjdk-jdk9   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 14
Source Project: hottub   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 15
Source Project: openjdk-8-source   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 16
Source Project: openjdk-8   Source File: T6888367.java    License: GNU General Public License v2.0 5 votes vote down vote up
public String visitTypeParamType(TypeParamType type, Void p) {
    StringBuilder sb = new StringBuilder();
    sb.append("TA{");
    sb.append(type.name);
    if (type.classBound != null) {
        sb.append(":c");
        sb.append(print(type.classBound));
    }
    if (type.interfaceBounds != null)
        sb.append(print(":i", type.interfaceBounds, ""));
    sb.append("}");
    return sb.toString();
}
 
Example 17
Source Project: TencentKona-8   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 18
Source Project: TencentKona-8   Source File: Dependencies.java    License: GNU General Public License v2.0 4 votes vote down vote up
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 19
Source Project: jdk8u60   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 20
Source Project: jdk8u60   Source File: Dependencies.java    License: GNU General Public License v2.0 4 votes vote down vote up
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 21
Source Project: openjdk-jdk8u   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 22
Source Project: openjdk-jdk8u   Source File: Dependencies.java    License: GNU General Public License v2.0 4 votes vote down vote up
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 23
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 24
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 25
Source Project: openjdk-jdk9   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 26
Source Project: openjdk-jdk9   Source File: Dependencies.java    License: GNU General Public License v2.0 4 votes vote down vote up
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 27
Source Project: hottub   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 28
Source Project: hottub   Source File: Dependencies.java    License: GNU General Public License v2.0 4 votes vote down vote up
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}
 
Example 29
Source Project: openjdk-8-source   Source File: ClassWriter.java    License: GNU General Public License v2.0 4 votes vote down vote up
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) {
    StringBuilder builder = new StringBuilder();
    appendIfNotEmpty(builder, "<", typeParamTypes, "> ");
    return builder.toString();
}
 
Example 30
public Void visitTypeParamType(TypeParamType type, Void p) {
    findDependencies(type.classBound);
    findDependencies(type.interfaceBounds);
    return null;
}