Package soot.JastAddJ
Class BytecodeParser
- java.lang.Object
-
- soot.JastAddJ.BytecodeParser
-
- All Implemented Interfaces:
BytecodeReader,Flags
public class BytecodeParser extends Object implements Flags, BytecodeReader
-
-
Field Summary
Fields Modifier and Type Field Description CONSTANT_Class_InfoclassInfoCONSTANT_Info[]constantPoolbooleanisInnerClassStringnameStringouterClassNamestatic booleanVERBOSE-
Fields inherited from interface soot.JastAddJ.Flags
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 Summary
Constructors Constructor Description BytecodeParser()BytecodeParser(byte[] buffer, int size, String name)BytecodeParser(InputStream in, String name)BytecodeParser(String name)
-
Method Summary
-
-
-
Field Detail
-
VERBOSE
public static final boolean VERBOSE
- See Also:
- Constant Field Values
-
classInfo
public CONSTANT_Class_Info classInfo
-
outerClassName
public String outerClassName
-
name
public String name
-
isInnerClass
public boolean isInnerClass
-
constantPool
public CONSTANT_Info[] constantPool
-
-
Constructor Detail
-
BytecodeParser
public BytecodeParser(byte[] buffer, int size, String name)
-
BytecodeParser
public BytecodeParser(InputStream in, String name)
-
BytecodeParser
public BytecodeParser()
-
BytecodeParser
public BytecodeParser(String name)
-
-
Method Detail
-
read
public CompilationUnit read(InputStream is, String fullName, Program p) throws FileNotFoundException, IOException
- Specified by:
readin interfaceBytecodeReader- Throws:
FileNotFoundExceptionIOException
-
next
public int next()
-
u1
public int u1()
-
u2
public int u2()
-
u4
public int u4()
-
readInt
public int readInt()
-
readFloat
public float readFloat()
-
readLong
public long readLong()
-
readDouble
public double readDouble()
-
readUTF
public String readUTF()
-
skip
public void skip(int length)
-
error
public void error(String s)
-
print
public void print(String s)
-
println
public void println(String s)
-
println
public void println()
-
parse
public CompilationUnit parse(TypeDecl outerTypeDecl, String outerClassName, Program classPath, boolean isInner) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
parse
public CompilationUnit parse(TypeDecl outerTypeDecl, String outerClassName, Program program) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
parseMagic
public void parseMagic()
-
parseMinor
public void parseMinor()
-
parseMajor
public void parseMajor()
-
parseTypeDecl
public TypeDecl parseTypeDecl()
-
parseThisClass
public String parseThisClass()
-
parseSuperClass
public Access parseSuperClass()
-
modifiers
public static Modifiers modifiers(int flags)
-
parseFields
public void parseFields(TypeDecl typeDecl)
-
parseMethods
public void parseMethods(TypeDecl typeDecl)
-
validConstantPoolIndex
public boolean validConstantPoolIndex(int index)
-
getCONSTANT_Info
public CONSTANT_Info getCONSTANT_Info(int index)
-
getCONSTANT_Utf8_Info
public CONSTANT_Utf8_Info getCONSTANT_Utf8_Info(int index)
-
getCONSTANT_Class_Info
public CONSTANT_Class_Info getCONSTANT_Class_Info(int index)
-
parseConstantPool
public void parseConstantPool()
-
parseEntry
public void parseEntry(int i)
-
-