private class Pass3aVerifier.InstOperandConstraintVisitor extends EmptyVisitor
| Modifier and Type | Field and Description |
|---|---|
private ConstantPoolGen |
cpg
The ConstantPoolGen instance this Visitor operates on.
|
| Constructor and Description |
|---|
Pass3aVerifier.InstOperandConstraintVisitor(ConstantPoolGen cpg)
The only Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
constraintViolated(Instruction i,
String message)
A utility method to always raise an exeption.
|
private void |
indexValid(Instruction i,
int idx)
A utility method to raise an exception if the index is not
a valid constant pool index.
|
private int |
max_locals()
Utility method to return the max_locals value of the method verified
by the surrounding Pass3aVerifier instance.
|
private boolean |
objarrayequals(Object[] o,
Object[] p)
A utility method like equals(Object) for arrays.
|
void |
visitALOAD(ALOAD o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitANEWARRAY(ANEWARRAY o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitASTORE(ASTORE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitCHECKCAST(CHECKCAST o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitDLOAD(DLOAD o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitDSTORE(DSTORE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitFieldInstruction(FieldInstruction o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitFLOAD(FLOAD o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitFSTORE(FSTORE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitGETSTATIC(GETSTATIC o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitIINC(IINC o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitILOAD(ILOAD o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitINSTANCEOF(INSTANCEOF o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitInvokeInstruction(InvokeInstruction o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitINVOKEINTERFACE(INVOKEINTERFACE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitINVOKESPECIAL(INVOKESPECIAL o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitINVOKESTATIC(INVOKESTATIC o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitINVOKEVIRTUAL(INVOKEVIRTUAL o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitISTORE(ISTORE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitLDC(LDC o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitLDC2_W(LDC2_W o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitLLOAD(LLOAD o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitLoadClass(LoadClass o)
Assures the generic preconditions of a LoadClass instance.
|
void |
visitLOOKUPSWITCH(LOOKUPSWITCH o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitLSTORE(LSTORE o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitMULTIANEWARRAY(MULTIANEWARRAY o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitNEW(NEW o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitNEWARRAY(NEWARRAY o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitPUTSTATIC(PUTSTATIC o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitRET(RET o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
void |
visitTABLESWITCH(TABLESWITCH o)
Checks if the constraints of operands of the said instruction(s) are satisfied.
|
visitAALOAD, visitAASTORE, visitACONST_NULL, visitAllocationInstruction, visitARETURN, visitArithmeticInstruction, visitArrayInstruction, visitARRAYLENGTH, visitATHROW, visitBALOAD, visitBASTORE, visitBIPUSH, visitBranchInstruction, visitBREAKPOINT, visitCALOAD, visitCASTORE, visitConstantPushInstruction, visitConversionInstruction, visitCPInstruction, visitD2F, visitD2I, visitD2L, visitDADD, visitDALOAD, visitDASTORE, visitDCMPG, visitDCMPL, visitDCONST, visitDDIV, visitDMUL, visitDNEG, visitDREM, visitDRETURN, visitDSUB, visitDUP_X1, visitDUP_X2, visitDUP, visitDUP2_X1, visitDUP2_X2, visitDUP2, visitExceptionThrower, visitF2D, visitF2I, visitF2L, visitFADD, visitFALOAD, visitFASTORE, visitFCMPG, visitFCMPL, visitFCONST, visitFDIV, visitFieldOrMethod, visitFMUL, visitFNEG, visitFREM, visitFRETURN, visitFSUB, visitGETFIELD, visitGOTO_W, visitGOTO, visitGotoInstruction, visitI2B, visitI2C, visitI2D, visitI2F, visitI2L, visitI2S, visitIADD, visitIALOAD, visitIAND, visitIASTORE, visitICONST, visitIDIV, visitIF_ACMPEQ, visitIF_ACMPNE, visitIF_ICMPEQ, visitIF_ICMPGE, visitIF_ICMPGT, visitIF_ICMPLE, visitIF_ICMPLT, visitIF_ICMPNE, visitIFEQ, visitIFGE, visitIFGT, visitIfInstruction, visitIFLE, visitIFLT, visitIFNE, visitIFNONNULL, visitIFNULL, visitIMPDEP1, visitIMPDEP2, visitIMUL, visitINEG, visitIOR, visitIREM, visitIRETURN, visitISHL, visitISHR, visitISUB, visitIUSHR, visitIXOR, visitJSR_W, visitJSR, visitJsrInstruction, visitL2D, visitL2F, visitL2I, visitLADD, visitLALOAD, visitLAND, visitLASTORE, visitLCMP, visitLCONST, visitLDIV, visitLMUL, visitLNEG, visitLoadInstruction, visitLocalVariableInstruction, visitLOR, visitLREM, visitLRETURN, visitLSHL, visitLSHR, visitLSUB, visitLUSHR, visitLXOR, visitMONITORENTER, visitMONITOREXIT, visitNOP, visitPOP, visitPOP2, visitPopInstruction, visitPushInstruction, visitPUTFIELD, visitRETURN, visitReturnInstruction, visitSALOAD, visitSASTORE, visitSelect, visitSIPUSH, visitStackConsumer, visitStackInstruction, visitStackProducer, visitStoreInstruction, visitSWAP, visitTypedInstruction, visitUnconditionalBranch, visitVariableLengthInstructionprivate ConstantPoolGen cpg
Pass3aVerifier.InstOperandConstraintVisitor(ConstantPoolGen cpg)
private int max_locals()
private void constraintViolated(Instruction i, String message)
private void indexValid(Instruction i, int idx)
public void visitLoadClass(LoadClass o)
visitLoadClass in interface VisitorvisitLoadClass in class EmptyVisitorpublic void visitLDC(LDC o)
visitLDC in interface VisitorvisitLDC in class EmptyVisitorpublic void visitLDC2_W(LDC2_W o)
visitLDC2_W in interface VisitorvisitLDC2_W in class EmptyVisitorpublic void visitFieldInstruction(FieldInstruction o)
visitFieldInstruction in interface VisitorvisitFieldInstruction in class EmptyVisitorpublic void visitInvokeInstruction(InvokeInstruction o)
visitInvokeInstruction in interface VisitorvisitInvokeInstruction in class EmptyVisitorpublic void visitINSTANCEOF(INSTANCEOF o)
visitINSTANCEOF in interface VisitorvisitINSTANCEOF in class EmptyVisitorpublic void visitCHECKCAST(CHECKCAST o)
visitCHECKCAST in interface VisitorvisitCHECKCAST in class EmptyVisitorpublic void visitNEW(NEW o)
visitNEW in interface VisitorvisitNEW in class EmptyVisitorpublic void visitMULTIANEWARRAY(MULTIANEWARRAY o)
visitMULTIANEWARRAY in interface VisitorvisitMULTIANEWARRAY in class EmptyVisitorpublic void visitANEWARRAY(ANEWARRAY o)
visitANEWARRAY in interface VisitorvisitANEWARRAY in class EmptyVisitorpublic void visitNEWARRAY(NEWARRAY o)
visitNEWARRAY in interface VisitorvisitNEWARRAY in class EmptyVisitorpublic void visitILOAD(ILOAD o)
visitILOAD in interface VisitorvisitILOAD in class EmptyVisitorpublic void visitFLOAD(FLOAD o)
visitFLOAD in interface VisitorvisitFLOAD in class EmptyVisitorpublic void visitALOAD(ALOAD o)
visitALOAD in interface VisitorvisitALOAD in class EmptyVisitorpublic void visitISTORE(ISTORE o)
visitISTORE in interface VisitorvisitISTORE in class EmptyVisitorpublic void visitFSTORE(FSTORE o)
visitFSTORE in interface VisitorvisitFSTORE in class EmptyVisitorpublic void visitASTORE(ASTORE o)
visitASTORE in interface VisitorvisitASTORE in class EmptyVisitorpublic void visitIINC(IINC o)
visitIINC in interface VisitorvisitIINC in class EmptyVisitorpublic void visitRET(RET o)
visitRET in interface VisitorvisitRET in class EmptyVisitorpublic void visitLLOAD(LLOAD o)
visitLLOAD in interface VisitorvisitLLOAD in class EmptyVisitorpublic void visitDLOAD(DLOAD o)
visitDLOAD in interface VisitorvisitDLOAD in class EmptyVisitorpublic void visitLSTORE(LSTORE o)
visitLSTORE in interface VisitorvisitLSTORE in class EmptyVisitorpublic void visitDSTORE(DSTORE o)
visitDSTORE in interface VisitorvisitDSTORE in class EmptyVisitorpublic void visitLOOKUPSWITCH(LOOKUPSWITCH o)
visitLOOKUPSWITCH in interface VisitorvisitLOOKUPSWITCH in class EmptyVisitorpublic void visitTABLESWITCH(TABLESWITCH o)
visitTABLESWITCH in interface VisitorvisitTABLESWITCH in class EmptyVisitorpublic void visitPUTSTATIC(PUTSTATIC o)
visitPUTSTATIC in interface VisitorvisitPUTSTATIC in class EmptyVisitorpublic void visitGETSTATIC(GETSTATIC o)
visitGETSTATIC in interface VisitorvisitGETSTATIC in class EmptyVisitorpublic void visitINVOKEINTERFACE(INVOKEINTERFACE o)
visitINVOKEINTERFACE in interface VisitorvisitINVOKEINTERFACE in class EmptyVisitorpublic void visitINVOKESPECIAL(INVOKESPECIAL o)
visitINVOKESPECIAL in interface VisitorvisitINVOKESPECIAL in class EmptyVisitorpublic void visitINVOKESTATIC(INVOKESTATIC o)
visitINVOKESTATIC in interface VisitorvisitINVOKESTATIC in class EmptyVisitorpublic void visitINVOKEVIRTUAL(INVOKEVIRTUAL o)
visitINVOKEVIRTUAL in interface VisitorvisitINVOKEVIRTUAL in class EmptyVisitor