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

The following examples show how to use com.sun.tools.classfile.Type.TypeParamType. 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: ClassWriter.java    From TencentKona-8 with 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 File: ClassWriter.java    From openjdk-8 with 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 File: ClassWriter.java    From openjdk-8-source with 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
Source File: ClassWriter.java    From jdk8u60 with 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 #5
Source File: ClassWriter.java    From hottub with 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 #6
Source File: ClassWriter.java    From openjdk-jdk8u with 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 File: ClassWriter.java    From openjdk-jdk9 with 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 #8
Source File: ClassWriter.java    From openjdk-jdk8u-backup with 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 File: T6888367.java    From openjdk-8 with 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 File: T6888367.java    From openjdk-8-source with 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 File: T6888367.java    From hottub with 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
Source File: T6888367.java    From openjdk-jdk9 with 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 #13
Source File: T6888367.java    From openjdk-jdk8u-backup with 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 File: T6888367.java    From openjdk-jdk8u with 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 File: T6888367.java    From TencentKona-8 with 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 File: T6888367.java    From jdk8u60 with 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 File: Dependencies.java    From hottub with 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 #18
Source File: ClassWriter.java    From TencentKona-8 with 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 #19
Source File: Dependencies.java    From openjdk-8 with 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 #20
Source File: Dependencies.java    From TencentKona-8 with 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 File: ClassWriter.java    From openjdk-8 with 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 File: Dependencies.java    From openjdk-8-source with 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
Source File: ClassWriter.java    From jdk8u60 with 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 #24
Source File: ClassWriter.java    From openjdk-8-source with 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 #25
Source File: Dependencies.java    From jdk8u60 with 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 #26
Source File: ClassWriter.java    From openjdk-jdk8u-backup with 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 #27
Source File: ClassWriter.java    From hottub with 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 File: ClassWriter.java    From openjdk-jdk8u with 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 #29
Source File: Dependencies.java    From openjdk-jdk9 with 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 #30
Source File: Dependencies.java    From openjdk-jdk8u with 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;
}