public class BytecodeParser extends Object implements Flags, BytecodeReader
| Modifier and Type | Field and Description |
|---|---|
CONSTANT_Class_Info |
classInfo |
CONSTANT_Info[] |
constantPool |
boolean |
isInnerClass |
String |
name |
String |
outerClassName |
static boolean |
VERBOSE |
ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VOLATILE| Constructor and Description |
|---|
BytecodeParser() |
BytecodeParser(byte[] buffer,
int size,
String name) |
BytecodeParser(InputStream in,
String name) |
BytecodeParser(String name) |
public static final boolean VERBOSE
public CONSTANT_Class_Info classInfo
public String outerClassName
public String name
public boolean isInnerClass
public CONSTANT_Info[] constantPool
public BytecodeParser(byte[] buffer,
int size,
String name)
public BytecodeParser(InputStream in, String name)
public BytecodeParser()
public BytecodeParser(String name)
public CompilationUnit read(InputStream is, String fullName, Program p) throws FileNotFoundException, IOException
read in interface BytecodeReaderFileNotFoundExceptionIOExceptionpublic int next()
public int u1()
public int u2()
public int u4()
public int readInt()
public float readFloat()
public long readLong()
public double readDouble()
public String readUTF()
public void skip(int length)
public void error(String s)
public void print(String s)
public void println(String s)
public void println()
public CompilationUnit parse(TypeDecl outerTypeDecl, String outerClassName, Program classPath, boolean isInner) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic CompilationUnit parse(TypeDecl outerTypeDecl, String outerClassName, Program program) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic void parseMagic()
public void parseMinor()
public void parseMajor()
public TypeDecl parseTypeDecl()
public String parseThisClass()
public Access parseSuperClass()
public static Modifiers modifiers(int flags)
public void parseFields(TypeDecl typeDecl)
public void parseMethods(TypeDecl typeDecl)
public boolean validConstantPoolIndex(int index)
public CONSTANT_Info getCONSTANT_Info(int index)
public CONSTANT_Utf8_Info getCONSTANT_Utf8_Info(int index)
public CONSTANT_Class_Info getCONSTANT_Class_Info(int index)
public void parseConstantPool()
public void parseEntry(int i)
Copyright © 2020 Soot OSS. All rights reserved.