Java Code Examples for proguard.classfile.ClassConstants#INTERNAL_TYPE_GENERIC_START
The following examples show how to use
proguard.classfile.ClassConstants#INTERNAL_TYPE_GENERIC_START .
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: InternalTypeEnumeration.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
/** * Returns the next type from the method descriptor. */ public String nextType() { int startIndex = index; skipArray(); char c = descriptor.charAt(index++); switch (c) { case ClassConstants.INTERNAL_TYPE_CLASS_START: case ClassConstants.INTERNAL_TYPE_GENERIC_VARIABLE_START: { skipClass(); break; } case ClassConstants.INTERNAL_TYPE_GENERIC_START: { skipGeneric(); break; } } return descriptor.substring(startIndex, index); }
Example 2
Source File: InternalTypeEnumeration.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
private void skipClass() { while (true) { char c = descriptor.charAt(index++); switch (c) { case ClassConstants.INTERNAL_TYPE_GENERIC_START: skipGeneric(); break; case ClassConstants.INTERNAL_TYPE_CLASS_END: return; } } }
Example 3
Source File: InternalTypeEnumeration.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
private void skipGeneric() { int nestingLevel = 1; do { char c = descriptor.charAt(index++); switch (c) { case ClassConstants.INTERNAL_TYPE_GENERIC_START: nestingLevel++; break; case ClassConstants.INTERNAL_TYPE_GENERIC_END: nestingLevel--; break; } } while (nestingLevel > 0); }
Example 4
Source File: DescriptorClassEnumeration.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
/** * Returns the next class name from the descriptor. */ public String nextClassName() { int classNameStartIndex = index; // Find the first token marking the end of a class name '<' or ';'. loop: while (true) { switch (descriptor.charAt(index)) { case ClassConstants.INTERNAL_TYPE_GENERIC_START: case ClassConstants.INTERNAL_TYPE_CLASS_END: case ClassConstants.EXTERNAL_INNER_CLASS_SEPARATOR: { break loop; } } index++; } String className = descriptor.substring(classNameStartIndex, index); // Recompose the inner class name if necessary. accumulatedClassName = isInnerClassName ? accumulatedClassName + ClassConstants.INTERNAL_INNER_CLASS_SEPARATOR + className : className; return accumulatedClassName; }