Package org.jreversepro.reflect

Examples of org.jreversepro.reflect.ConstantPool


   *           Thrown if error in stream of bytes containing the class file.
   */
  public ClassInfo parseInputStream(DataInputStream dis, String pathToClass)
      throws IOException, ClassParserException {

    ConstantPool cp = AbstractClassFileParser.readConstantPool(dis);
    ClassInfo clazz = new ClassInfo(cp);
    short access = AbstractClassFileParser.readAccess(dis);

    clazz.setAccess(access);

    // <p>
    // For Example , a class by name <code>JClassParser</code> in the
    // package
    // <code>Heart</code> would be saved as: <code>Heart/JClassParser</code>
    // </p>.
    short thisClassIndex = AbstractClassFileParser.readThisClassIndex(dis);
    clazz.setThisClass(cp.getClassName(thisClassIndex));

    short superClassIndex = AbstractClassFileParser.readSuperClassIndex(dis);
    clazz.setSuperClass(cp.getClassName(superClassIndex));

    List<String> interfaceNames = AbstractClassFileParser.readInterfaces(dis,
        cp);
    clazz.setInterfaces(interfaceNames);

View Full Code Here


   *           Thrown if error in stream of bytes containing the class file.
   */
  public static ConstantPool readConstantPool(DataInputStream dis)
      throws IOException, ClassParserException {
    int numCpEntry = dis.readShort();
    ConstantPool cpInfo = new ConstantPool(numCpEntry);
    readCpEntries(dis, cpInfo, numCpEntry);
    return cpInfo;
  }
View Full Code Here

*
*/
public class RuntimeFrameTest {

  public RuntimeFrameTest() {
    pool = new ConstantPool(10);

    Method method = new Method();
    method.setName("noname");
    method.setSignature("(II)V");
    method.setMaxLocals(10);
View Full Code Here

TOP

Related Classes of org.jreversepro.reflect.ConstantPool

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.