Java Code Examples for proguard.classfile.ClassConstants#ELEMENT_VALUE_CLASS
The following examples show how to use
proguard.classfile.ClassConstants#ELEMENT_VALUE_CLASS .
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: ProgramClassReader.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
private ElementValue createElementValue() { int u1tag = dataInput.readUnsignedByte(); switch (u1tag) { case ClassConstants.INTERNAL_TYPE_BOOLEAN: case ClassConstants.INTERNAL_TYPE_BYTE: case ClassConstants.INTERNAL_TYPE_CHAR: case ClassConstants.INTERNAL_TYPE_SHORT: case ClassConstants.INTERNAL_TYPE_INT: case ClassConstants.INTERNAL_TYPE_FLOAT: case ClassConstants.INTERNAL_TYPE_LONG: case ClassConstants.INTERNAL_TYPE_DOUBLE: case ClassConstants.ELEMENT_VALUE_STRING_CONSTANT: return new ConstantElementValue(u1tag); case ClassConstants.ELEMENT_VALUE_ENUM_CONSTANT: return new EnumConstantElementValue(); case ClassConstants.ELEMENT_VALUE_CLASS: return new ClassElementValue(); case ClassConstants.ELEMENT_VALUE_ANNOTATION: return new AnnotationElementValue(); case ClassConstants.ELEMENT_VALUE_ARRAY: return new ArrayElementValue(); default: throw new IllegalArgumentException("Unknown element value tag ["+u1tag+"]"); } }
Example 2
Source File: ClassElementValue.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
public int getTag() { return ClassConstants.ELEMENT_VALUE_CLASS; }