public Object readResolve() throws ObjectStreamException { return forDescriptor(mDescriptor); } }
/** * Returns a descriptor string, including any generics. */ // TODO //public abstract String getGenericDescriptor(); public static Descriptor parse(String desc) throws IllegalArgumentException { if (desc != null && desc.startsWith("(")) { return MethodDesc.forDescriptor(desc); } else { return TypeDesc.forDescriptor(desc); } } }
public TypeDesc getType() { return TypeDesc.forDescriptor(mType.getValue()); }
public ConstantClassInfo(ConstantUTFInfo nameConstant) { super(TAG_CLASS); String name = nameConstant.getValue(); if (!name.endsWith(";") && !name.startsWith("[")) { mType = TypeDesc.forClass(name); } else { mType = TypeDesc.forDescriptor(name); } mNameConstant = nameConstant; }
list.add(TypeDesc.forDescriptor(buf.toString())); buf.setLength(0); TypeDesc ret = TypeDesc.forDescriptor(desc.substring(cursor));
private FieldInfo(ClassFile parent, int modifier, ConstantUTFInfo nameConstant, ConstantUTFInfo descConstant) { mParent = parent; mCp = parent.getConstantPool(); mName = nameConstant.getValue(); mType = TypeDesc.forDescriptor(descConstant.getValue()); mModifiers = Modifiers.getInstance(modifier); mNameConstant = nameConstant; mDescriptorConstant = descConstant; }
mType = TypeDesc.forDescriptor(varDesc.getValue());
TypeDesc type = TypeDesc.forDescriptor(mStr.substring(mPos, endPos)); mPos = endPos;
public Object readResolve() throws ObjectStreamException { return forDescriptor(mDescriptor); } }
/** * Returns a descriptor string, including any generics. */ // TODO //public abstract String getGenericDescriptor(); public static Descriptor parse(String desc) throws IllegalArgumentException { if (desc != null && desc.startsWith("(")) { return MethodDesc.forDescriptor(desc); } else { return TypeDesc.forDescriptor(desc); } } }
public TypeDesc getType() { return TypeDesc.forDescriptor(mType.getValue()); }
public ConstantClassInfo(ConstantUTFInfo nameConstant) { super(TAG_CLASS); String name = nameConstant.getValue(); if (!name.endsWith(";") && !name.startsWith("[")) { mType = TypeDesc.forClass(name); } else { mType = TypeDesc.forDescriptor(name); } mNameConstant = nameConstant; }
print(TypeDesc.forDescriptor(ecv.getTypeName().getValue()).getFullName()); print("."); print(ecv.getConstName().getValue());
private FieldInfo(ClassFile parent, int modifier, ConstantUTFInfo nameConstant, ConstantUTFInfo descConstant) { mParent = parent; mCp = parent.getConstantPool(); mName = nameConstant.getValue(); mType = TypeDesc.forDescriptor(descConstant.getValue()); mModifiers = Modifiers.getInstance(modifier); mNameConstant = nameConstant; mDescriptorConstant = descConstant; }
types[i] = TypeDesc.forDescriptor(typeStr);
public Class getPropertyType(ClassLoader loader) throws SupportException { TypeDesc type = TypeDesc.forDescriptor(getPropertyTypeDescriptor()); Class propClass = type.toClass(loader); if (propClass == null) { throw new SupportException ("Unable to find class \"" + type.getRootName() + "\" for property \"" + getPropertyName() + '"'); } return propClass; }
public Class getPropertyType(ClassLoader loader) throws SupportException { TypeDesc type = TypeDesc.forDescriptor(getPropertyTypeDescriptor()); Class propClass = type.toClass(loader); if (propClass == null) { throw new SupportException ("Unable to find class \"" + type.getRootName() + "\" for property \"" + getPropertyName() + '"'); } return propClass; }
TypeDesc type = TypeDesc.forDescriptor(mStr.substring(mPos, endPos)); mPos = endPos;
TypeDesc type = TypeDesc.forDescriptor(mStr.substring(mPos, endPos)); mPos = endPos;
type = TypeDesc.forDescriptor(name); } else { type = TypeDesc.forClass(name);