in src/main/java/org/apache/bcel/generic/ElementValueGen.java [64:87]
public static ElementValueGen copy(final ElementValue value, final ConstantPoolGen cpool, final boolean copyPoolEntries) {
switch (value.getElementValueType()) {
case 'B': // byte
case 'C': // char
case 'D': // double
case 'F': // float
case 'I': // int
case 'J': // long
case 'S': // short
case 'Z': // boolean
case 's': // String
return new SimpleElementValueGen((SimpleElementValue) value, cpool, copyPoolEntries);
case 'e': // Enum constant
return new EnumElementValueGen((EnumElementValue) value, cpool, copyPoolEntries);
case '@': // Annotation
return new AnnotationElementValueGen((AnnotationElementValue) value, cpool, copyPoolEntries);
case '[': // Array
return new ArrayElementValueGen((ArrayElementValue) value, cpool, copyPoolEntries);
case 'c': // Class
return new ClassElementValueGen((ClassElementValue) value, cpool, copyPoolEntries);
default:
throw new UnsupportedOperationException("Not implemented yet! (" + value.getElementValueType() + ")");
}
}