/** * Visits an enumeration value of the annotation. * * @param name the value name. * @param descriptor the class descriptor of the enumeration class. * @param value the actual enumeration value. */ public void visitEnum(final String name, final String descriptor, final String value) { if (av != null) { av.visitEnum(name, descriptor, value); } }
/** * Visits an enumeration value of the annotation. * * @param name * the value name. * @param desc * the class descriptor of the enumeration class. * @param value * the actual enumeration value. */ public void visitEnum(String name, String desc, String value) { if (av != null) { av.visitEnum(name, desc, value); } }
@Override public void begin(final String nm, final Attributes attrs) { AnnotationVisitor av = (AnnotationVisitor) peek(); if (av != null) { av.visitEnum(attrs.getValue("name"), attrs.getValue("desc"), attrs.getValue("value")); } } }
@Override public void visitEnum(final String name, final String desc, final String value) { p.visitEnum(name, desc, value); super.visitEnum(name, desc, value); }
@Override public void visitEnum(String name, String desc, String value) { av.visitEnum(name, remapper.mapDesc(desc), value); }
@Override public void visitEnum(String name, String desc, String value) { av.visitEnum(name, remapper.mapDesc(desc), value); }
public void visitEnum( final String name, final String desc, final String value) { buf.setLength(0); appendComa(valueNumber++); if (name != null) { buf.append(name).append('='); } appendDescriptor(FIELD_DESCRIPTOR, desc); buf.append('.').append(value); text.add(buf.toString()); if (av != null) { av.visitEnum(name, desc, value); } }
@Override public void visitEnum(final String name, final String desc, final String value) { checkEnd(); checkName(name); CheckMethodAdapter.checkDesc(desc, false); if (value == null) { throw new IllegalArgumentException("Invalid enum value"); } if (av != null) { av.visitEnum(name, desc, value); } }
if (value instanceof String[]) { String[] typeconst = (String[]) value; av.visitEnum(name, typeconst[0], typeconst[1]); } else if (value instanceof AnnotationNode) { AnnotationNode an = (AnnotationNode) value;
String aenumType = "L" + BuildUtils.getInternalType(enArray[0].getClass().getName()) + ";"; for (Enum enumer : enArray) { subEnav.visitEnum(null,aenumType,enumer.name()); case ENUMERATION: String enumType = "L" + BuildUtils.getInternalType(apv.getType().getName()) + ";"; av.visitEnum(apv.getProperty(),enumType,((Enum) apv.getValue()).name()); break; case KLASS:
String aenumType = "L" + BuildUtils.getInternalType(enArray[0].getClass().getName()) + ";"; for (Enum enumer : enArray) { subEnav.visitEnum(null,aenumType,enumer.name()); case ENUMERATION: String enumType = "L" + BuildUtils.getInternalType(apv.getType().getName()) + ";"; av.visitEnum(apv.getProperty(),enumType,((Enum) apv.getValue()).name()); break; case KLASS:
break; case 'e': // enum_const_value av.visitEnum(name, readUTF8(v, buf), readUTF8(v + 2, buf)); v += 4; break;
break; case 'e': // enum_const_value annotationVisitor.visitEnum( elementName, readUTF8(currentOffset, charBuffer),
break; case 'e': // enum_const_value av.visitEnum(name, readUTF8(v, buf), readUTF8(v + 2, buf)); v += 4; break;