public class JimpleAST
extends java.lang.Object
Constructor and Description |
---|
JimpleAST(java.io.InputStream aJIS)
Constructs a JimpleAST and generates its parse tree from the given InputStream.
|
Modifier and Type | Method and Description |
---|---|
SootClass |
createSootClass()
Reads an entire class from jimple, creates the Soot objects &
returns it.
|
Body |
getBody(SootMethod m)
Returns a body corresponding to the parsed jimple for m.
|
java.util.Set<java.lang.String> |
getCstPool()
Extracts the reference constant pool for this JimpleAST.
|
SootResolver |
getResolver()
Returns the SootResolver currently in use.
|
void |
getSkeleton(SootClass sc)
Applies a SkeletonExtractorWalker to the given SootClass, using the given Resolver to resolve
the reference types it contains.
|
public JimpleAST(java.io.InputStream aJIS) throws ParserException, LexerException, java.io.IOException
aJIS
- The InputStream to parse.ParserException
LexerException
java.io.IOException
public SootClass createSootClass()
public void getSkeleton(SootClass sc)
sc
- a SootClass to fill in.public Body getBody(SootMethod m)
m
- the method we want to get a body for.public java.util.Set<java.lang.String> getCstPool()
public SootResolver getResolver()