Java Code Examples for jdk.internal.org.objectweb.asm.TypeReference#getSort()
The following examples show how to use
jdk.internal.org.objectweb.asm.TypeReference#getSort() .
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: Textifier.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 2
Source File: Textifier.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 3
Source File: Textifier.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 4
Source File: Textifier.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 5
Source File: Textifier.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 6
Source File: Textifier.java From Bytecoder with Apache License 2.0 | 4 votes |
/** * Appends a string representation of the given type reference to {@link #stringBuilder}. * * @param typeRef a type reference. See {@link TypeReference}. */ private void appendTypeReference(final int typeRef) { TypeReference typeReference = new TypeReference(typeRef); switch (typeReference.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: stringBuilder.append("CLASS_TYPE_PARAMETER ").append(typeReference.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: stringBuilder .append("METHOD_TYPE_PARAMETER ") .append(typeReference.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: stringBuilder.append("CLASS_EXTENDS ").append(typeReference.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: stringBuilder .append("CLASS_TYPE_PARAMETER_BOUND ") .append(typeReference.getTypeParameterIndex()) .append(", ") .append(typeReference.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: stringBuilder .append("METHOD_TYPE_PARAMETER_BOUND ") .append(typeReference.getTypeParameterIndex()) .append(", ") .append(typeReference.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: stringBuilder.append("FIELD"); break; case TypeReference.METHOD_RETURN: stringBuilder.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: stringBuilder.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: stringBuilder .append("METHOD_FORMAL_PARAMETER ") .append(typeReference.getFormalParameterIndex()); break; case TypeReference.THROWS: stringBuilder.append("THROWS ").append(typeReference.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: stringBuilder.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: stringBuilder.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: stringBuilder.append("EXCEPTION_PARAMETER ").append(typeReference.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: stringBuilder.append("INSTANCEOF"); break; case TypeReference.NEW: stringBuilder.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: stringBuilder.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: stringBuilder.append("METHOD_REFERENCE"); break; case TypeReference.CAST: stringBuilder.append("CAST ").append(typeReference.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: stringBuilder .append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ") .append(typeReference.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: stringBuilder .append("METHOD_INVOCATION_TYPE_ARGUMENT ") .append(typeReference.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: stringBuilder .append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ") .append(typeReference.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: stringBuilder .append("METHOD_REFERENCE_TYPE_ARGUMENT ") .append(typeReference.getTypeArgumentIndex()); break; default: throw new IllegalArgumentException(); } }
Example 7
Source File: Textifier.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 8
Source File: Textifier.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 9
Source File: Textifier.java From hottub with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 10
Source File: Textifier.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 11
Source File: Textifier.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 12
Source File: Textifier.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 13
Source File: Textifier.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }
Example 14
Source File: Textifier.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private void appendTypeReference(final int typeRef) { TypeReference ref = new TypeReference(typeRef); switch (ref.getSort()) { case TypeReference.CLASS_TYPE_PARAMETER: buf.append("CLASS_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER: buf.append("METHOD_TYPE_PARAMETER ").append( ref.getTypeParameterIndex()); break; case TypeReference.CLASS_EXTENDS: buf.append("CLASS_EXTENDS ").append(ref.getSuperTypeIndex()); break; case TypeReference.CLASS_TYPE_PARAMETER_BOUND: buf.append("CLASS_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.METHOD_TYPE_PARAMETER_BOUND: buf.append("METHOD_TYPE_PARAMETER_BOUND ") .append(ref.getTypeParameterIndex()).append(", ") .append(ref.getTypeParameterBoundIndex()); break; case TypeReference.FIELD: buf.append("FIELD"); break; case TypeReference.METHOD_RETURN: buf.append("METHOD_RETURN"); break; case TypeReference.METHOD_RECEIVER: buf.append("METHOD_RECEIVER"); break; case TypeReference.METHOD_FORMAL_PARAMETER: buf.append("METHOD_FORMAL_PARAMETER ").append( ref.getFormalParameterIndex()); break; case TypeReference.THROWS: buf.append("THROWS ").append(ref.getExceptionIndex()); break; case TypeReference.LOCAL_VARIABLE: buf.append("LOCAL_VARIABLE"); break; case TypeReference.RESOURCE_VARIABLE: buf.append("RESOURCE_VARIABLE"); break; case TypeReference.EXCEPTION_PARAMETER: buf.append("EXCEPTION_PARAMETER ").append( ref.getTryCatchBlockIndex()); break; case TypeReference.INSTANCEOF: buf.append("INSTANCEOF"); break; case TypeReference.NEW: buf.append("NEW"); break; case TypeReference.CONSTRUCTOR_REFERENCE: buf.append("CONSTRUCTOR_REFERENCE"); break; case TypeReference.METHOD_REFERENCE: buf.append("METHOD_REFERENCE"); break; case TypeReference.CAST: buf.append("CAST ").append(ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_INVOCATION_TYPE_ARGUMENT: buf.append("METHOD_INVOCATION_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT: buf.append("CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; case TypeReference.METHOD_REFERENCE_TYPE_ARGUMENT: buf.append("METHOD_REFERENCE_TYPE_ARGUMENT ").append( ref.getTypeArgumentIndex()); break; } }