public class ConstantFrameModelingVisitor extends AbstractFrameModelingVisitor<Constant,ConstantFrame>
For now, only String constants are modeled. In the future we can add other kinds of constants.
ConstantAnalysis
cpg
Constructor and Description |
---|
ConstantFrameModelingVisitor(org.apache.bcel.generic.ConstantPoolGen cpg) |
Modifier and Type | Method and Description |
---|---|
Constant |
getDefaultValue()
Produce a "default" value.
|
void |
visitBIPUSH(org.apache.bcel.generic.BIPUSH obj) |
void |
visitICONST(org.apache.bcel.generic.ICONST obj) |
void |
visitIINC(org.apache.bcel.generic.IINC obj) |
void |
visitLDC(org.apache.bcel.generic.LDC obj) |
void |
visitLDC2_W(org.apache.bcel.generic.LDC2_W obj) |
void |
visitSIPUSH(org.apache.bcel.generic.SIPUSH obj) |
analyzeInstruction, getCPG, getFrame, getLocation, getNumWordsConsumed, getNumWordsProduced, handleLoadInstruction, handleNormalInstruction, handleStoreInstruction, modelInstruction, modelNormalInstruction, setFrameAndLocation, visitAALOAD, visitAASTORE, visitACONST_NULL, visitAllocationInstruction, visitALOAD, visitANEWARRAY, visitARETURN, visitArithmeticInstruction, visitArrayInstruction, visitARRAYLENGTH, visitASTORE, visitATHROW, visitBALOAD, visitBASTORE, visitBranchInstruction, visitBREAKPOINT, visitCALOAD, visitCASTORE, visitCHECKCAST, visitConstantPushInstruction, visitConversionInstruction, visitConversionInstruction2, visitCPInstruction, visitD2F, visitD2I, visitD2L, visitDADD, visitDALOAD, visitDASTORE, visitDCMPG, visitDCMPL, visitDCONST, visitDDIV, visitDLOAD, visitDMUL, visitDNEG, visitDREM, visitDRETURN, visitDSTORE, visitDSUB, visitDUP_X1, visitDUP_X2, visitDUP, visitDUP2_X1, visitDUP2_X2, visitDUP2, visitExceptionThrower, visitF2D, visitF2I, visitF2L, visitFADD, visitFALOAD, visitFASTORE, visitFCMPG, visitFCMPL, visitFCONST, visitFDIV, visitFieldInstruction, visitFieldOrMethod, visitFLOAD, visitFMUL, visitFNEG, visitFREM, visitFRETURN, visitFSTORE, visitFSUB, visitGETFIELD, visitGETSTATIC, visitGOTO_W, visitGOTO, visitGotoInstruction, visitI2B, visitI2C, visitI2D, visitI2F, visitI2L, visitI2S, visitIADD, visitIALOAD, visitIAND, visitIASTORE, 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, visitILOAD, visitIMPDEP1, visitIMPDEP2, visitIMUL, visitINEG, visitINSTANCEOF, visitINVOKEDYNAMIC, visitInvokeInstruction, visitINVOKEINTERFACE, visitINVOKESPECIAL, visitINVOKESTATIC, visitINVOKEVIRTUAL, visitIOR, visitIREM, visitIRETURN, visitISHL, visitISHR, visitISTORE, visitISUB, visitIUSHR, visitIXOR, visitJSR_W, visitJSR, visitJsrInstruction, visitL2D, visitL2F, visitL2I, visitLADD, visitLALOAD, visitLAND, visitLASTORE, visitLCMP, visitLCONST, visitLDIV, visitLLOAD, visitLMUL, visitLNEG, visitLoadClass, visitLoadInstruction, visitLocalVariableInstruction, visitLOOKUPSWITCH, visitLOR, visitLREM, visitLRETURN, visitLSHL, visitLSHR, visitLSTORE, visitLSUB, visitLUSHR, visitLXOR, visitMONITORENTER, visitMONITOREXIT, visitMULTIANEWARRAY, visitNEW, visitNEWARRAY, visitNONNULL2Z, visitNOP, visitNULL2Z, visitPOP, visitPOP2, visitPopInstruction, visitPushInstruction, visitPUTFIELD, visitPUTSTATIC, visitRET, visitRETURN, visitReturnInstruction, visitSALOAD, visitSASTORE, visitSelect, visitStackConsumer, visitStackInstruction, visitStackProducer, visitStoreInstruction, visitSWAP, visitTABLESWITCH, visitTypedInstruction, visitUnconditionalBranch, visitVariableLengthInstruction
public ConstantFrameModelingVisitor(org.apache.bcel.generic.ConstantPoolGen cpg)
public Constant getDefaultValue()
AbstractFrameModelingVisitor
getDefaultValue
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitIINC(org.apache.bcel.generic.IINC obj)
visitIINC
in interface org.apache.bcel.generic.Visitor
visitIINC
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitICONST(org.apache.bcel.generic.ICONST obj)
visitICONST
in interface org.apache.bcel.generic.Visitor
visitICONST
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitBIPUSH(org.apache.bcel.generic.BIPUSH obj)
visitBIPUSH
in interface org.apache.bcel.generic.Visitor
visitBIPUSH
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitSIPUSH(org.apache.bcel.generic.SIPUSH obj)
visitSIPUSH
in interface org.apache.bcel.generic.Visitor
visitSIPUSH
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitLDC(org.apache.bcel.generic.LDC obj)
visitLDC
in interface org.apache.bcel.generic.Visitor
visitLDC
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
public void visitLDC2_W(org.apache.bcel.generic.LDC2_W obj)
visitLDC2_W
in interface org.apache.bcel.generic.Visitor
visitLDC2_W
in class AbstractFrameModelingVisitor<Constant,ConstantFrame>
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.