Class SSAtoXMLVisitor
java.lang.Object
org.scandroid.synthmethod.SSAtoXMLVisitor
- All Implemented Interfaces:
SSAInstruction.IVisitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visitArrayLength
(SSAArrayLengthInstruction instruction) void
visitArrayLoad
(SSAArrayLoadInstruction instruction) Load from an array ref, at specified index, and store in def.void
visitArrayStore
(SSAArrayStoreInstruction instruction) <aastore ref="x" value="y" index="0" />
void
visitBinaryOp
(SSABinaryOpInstruction instruction) void
visitCheckCast
(SSACheckCastInstruction instruction) void
visitComparison
(SSAComparisonInstruction instruction) void
visitConditionalBranch
(SSAConditionalBranchInstruction instruction) void
visitConversion
(SSAConversionInstruction instruction) void
visitGet
(SSAGetInstruction instruction) eg:<getfield class="Ljava/lang/Thread" field="runnable" fieldType="Ljava/lang/Runnable" def="x" ref="arg0" />
void
visitGetCaughtException
(SSAGetCaughtExceptionInstruction instruction) void
visitGoto
(SSAGotoInstruction instruction) void
visitInstanceof
(SSAInstanceofInstruction instruction) void
visitInvoke
(SSAInvokeInstruction instruction) <call type="virtual" name="put" class="Ljava/util/Hashtable" descriptor="(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;" arg0="x" arg1="key" arg2="value" def="local_def" />
void
visitLoadMetadata
(SSALoadMetadataInstruction instruction) void
visitMonitor
(SSAMonitorInstruction instruction) void
visitNew
(SSANewInstruction instruction) void
visitPhi
(SSAPhiInstruction instruction) void
visitPi
(SSAPiInstruction instruction) void
visitPut
(SSAPutInstruction instruction) <putstatic class="Ljava/lang/System" field="security" fieldType="Ljava/lang/SecurityManager" value="secure" />
void
visitReturn
(SSAReturnInstruction instruction) void
visitSwitch
(SSASwitchInstruction instruction) void
visitThrow
(SSAThrowInstruction instruction) Serialiaze a throw to XML.void
visitUnaryOp
(SSAUnaryOpInstruction instruction)
-
Constructor Details
-
SSAtoXMLVisitor
-
-
Method Details
-
visitGoto
- Specified by:
visitGoto
in interfaceSSAInstruction.IVisitor
-
visitArrayLoad
Load from an array ref, at specified index, and store in def.<aaload ref="x" index="0" def="y" />
- Specified by:
visitArrayLoad
in interfaceSSAInstruction.IVisitor
-
visitArrayStore
<aastore ref="x" value="y" index="0" />
- Specified by:
visitArrayStore
in interfaceSSAInstruction.IVisitor
-
visitBinaryOp
- Specified by:
visitBinaryOp
in interfaceSSAInstruction.IVisitor
-
visitUnaryOp
- Specified by:
visitUnaryOp
in interfaceSSAInstruction.IVisitor
-
visitConversion
- Specified by:
visitConversion
in interfaceSSAInstruction.IVisitor
-
visitComparison
- Specified by:
visitComparison
in interfaceSSAInstruction.IVisitor
-
visitConditionalBranch
- Specified by:
visitConditionalBranch
in interfaceSSAInstruction.IVisitor
-
visitSwitch
- Specified by:
visitSwitch
in interfaceSSAInstruction.IVisitor
-
visitReturn
- Specified by:
visitReturn
in interfaceSSAInstruction.IVisitor
-
visitGet
eg:<getfield class="Ljava/lang/Thread" field="runnable" fieldType="Ljava/lang/Runnable" def="x" ref="arg0" />
I think the get statics look like this:
1007g 9.1g 12m S 237.9 0.9 4:27.32 java
<getstatic class="Ljava/lang/Thread" field="runnable" fieldType="Ljava/lang/Runnable" def="x" />
- Specified by:
visitGet
in interfaceSSAInstruction.IVisitor
-
visitPut
<putstatic class="Ljava/lang/System" field="security" fieldType="Ljava/lang/SecurityManager" value="secure" />
<putfield class="Ljava/lang/Thread" field="runnable" fieldType="Ljava/lang/Runnable" ref="arg0" value="arg0" />
- Specified by:
visitPut
in interfaceSSAInstruction.IVisitor
-
visitInvoke
<call type="virtual" name="put" class="Ljava/util/Hashtable" descriptor="(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;" arg0="x" arg1="key" arg2="value" def="local_def" />
- Specified by:
visitInvoke
in interfaceSSAInstruction.IVisitor
-
visitNew
- Specified by:
visitNew
in interfaceSSAInstruction.IVisitor
-
visitArrayLength
- Specified by:
visitArrayLength
in interfaceSSAInstruction.IVisitor
-
visitThrow
Serialiaze a throw to XML.Something like this?
<throw value="val_localDef" />
- Specified by:
visitThrow
in interfaceSSAInstruction.IVisitor
-
visitMonitor
- Specified by:
visitMonitor
in interfaceSSAInstruction.IVisitor
-
visitCheckCast
- Specified by:
visitCheckCast
in interfaceSSAInstruction.IVisitor
-
visitInstanceof
- Specified by:
visitInstanceof
in interfaceSSAInstruction.IVisitor
-
visitPhi
- Specified by:
visitPhi
in interfaceSSAInstruction.IVisitor
-
visitPi
- Specified by:
visitPi
in interfaceSSAInstruction.IVisitor
-
visitGetCaughtException
- Specified by:
visitGetCaughtException
in interfaceSSAInstruction.IVisitor
-
visitLoadMetadata
- Specified by:
visitLoadMetadata
in interfaceSSAInstruction.IVisitor
-
getInstSummary
-