Package org.springsource.loaded

Examples of org.springsource.loaded.TypeDescriptorExtractor


    if (version.equals("")) {
      bytes = loadBytesForClass(typeName);
    } else {
      bytes = retrieveRename(typeName, typeName + version);
    }
    TypeDescriptor typeDescriptor = new TypeDescriptorExtractor(tr).extract(bytes, true);
    for (MethodMember method : typeDescriptor.getConstructors()) {
      sigs.add(method.getDescriptor());
    }
  }
View Full Code Here


   */
  @Test
  public void simpleExtraction() {
    TypeRegistry registry = getTypeRegistry(null);
    byte[] classBytes = loadBytesForClass("data.SimpleClass");
    TypeDescriptor td = new TypeDescriptorExtractor(registry).extract(classBytes, true);
    // @formatter:off
    checkType(classBytes,
        "CLASS: data/SimpleClass v50 0x0020(synchronized) super java/lang/Object\n" +
        "SOURCE: SimpleClass.java null\n"+
        "METHOD: 0x0000() <init>()V\n" +
View Full Code Here

  @Test
  public void varietyOfMethods() {
    TypeRegistry registry = getTypeRegistry(null);
    byte[] classBytes = loadBytesForClass("data.SimpleClassFour");
    TypeDescriptor td = new TypeDescriptorExtractor(registry).extract(classBytes, true);
    byte[] bytes = InterfaceExtractor.extract(classBytes, registry, td);
    // @formatter:off
    checkType(bytes,
        "CLASS: data/SimpleClassFour__I v50 0x0601(public abstract interface) super java/lang/Object\n"+
        "METHOD: 0x0401(public abstract) ___init___(Ldata/SimpleClassFour;I)V\n" +
View Full Code Here

TOP

Related Classes of org.springsource.loaded.TypeDescriptorExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.