public class IsNullValueFrameModelingVisitor extends AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
cpg
Constructor and Description |
---|
IsNullValueFrameModelingVisitor(org.apache.bcel.generic.ConstantPoolGen cpg,
AssertionMethods assertionMethods,
ValueNumberDataflow vnaDataflow,
TypeDataflow typeDataflow,
boolean trackValueNumbers) |
Modifier and Type | Method and Description |
---|---|
void |
analyzeInstruction(org.apache.bcel.generic.Instruction ins)
Analyze the given Instruction.
|
IsNullValue |
getDefaultValue()
Produce a "default" value.
|
IsNullValue |
getReturnValueNullness(XMethod calledMethod) |
int |
getSlotContainingNewNullValue() |
void |
visitACONST_NULL(org.apache.bcel.generic.ACONST_NULL obj) |
void |
visitANEWARRAY(org.apache.bcel.generic.ANEWARRAY obj) |
void |
visitCHECKCAST(org.apache.bcel.generic.CHECKCAST obj) |
void |
visitGETFIELD(org.apache.bcel.generic.GETFIELD obj) |
void |
visitGETSTATIC(org.apache.bcel.generic.GETSTATIC obj) |
void |
visitINVOKEINTERFACE(org.apache.bcel.generic.INVOKEINTERFACE obj) |
void |
visitINVOKESPECIAL(org.apache.bcel.generic.INVOKESPECIAL obj) |
void |
visitINVOKESTATIC(org.apache.bcel.generic.INVOKESTATIC obj) |
void |
visitINVOKEVIRTUAL(org.apache.bcel.generic.INVOKEVIRTUAL obj) |
void |
visitLDC(org.apache.bcel.generic.LDC obj) |
void |
visitLDC2_W(org.apache.bcel.generic.LDC2_W obj) |
void |
visitMULTIANEWARRAY(org.apache.bcel.generic.MULTIANEWARRAY obj) |
void |
visitNEW(org.apache.bcel.generic.NEW obj) |
void |
visitNEWARRAY(org.apache.bcel.generic.NEWARRAY obj) |
void |
visitPUTFIELD(org.apache.bcel.generic.PUTFIELD obj) |
getCPG, getFrame, getLocation, getNumWordsConsumed, getNumWordsProduced, handleLoadInstruction, handleNormalInstruction, handleStoreInstruction, modelInstruction, modelNormalInstruction, setFrameAndLocation, visitAALOAD, visitAASTORE, visitAllocationInstruction, visitALOAD, visitARETURN, visitArithmeticInstruction, visitArrayInstruction, visitARRAYLENGTH, visitASTORE, visitATHROW, visitBALOAD, visitBASTORE, visitBIPUSH, visitBranchInstruction, visitBREAKPOINT, visitCALOAD, visitCASTORE, 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, 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, visitIINC, visitILOAD, visitIMPDEP1, visitIMPDEP2, visitIMUL, visitINEG, visitINSTANCEOF, visitINVOKEDYNAMIC, visitInvokeInstruction, 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, visitNONNULL2Z, visitNOP, visitNULL2Z, visitPOP, visitPOP2, visitPopInstruction, visitPushInstruction, visitPUTSTATIC, visitRET, visitRETURN, visitReturnInstruction, visitSALOAD, visitSASTORE, visitSelect, visitSIPUSH, visitStackConsumer, visitStackInstruction, visitStackProducer, visitStoreInstruction, visitSWAP, visitTABLESWITCH, visitTypedInstruction, visitUnconditionalBranch, visitVariableLengthInstruction
public IsNullValueFrameModelingVisitor(org.apache.bcel.generic.ConstantPoolGen cpg, AssertionMethods assertionMethods, ValueNumberDataflow vnaDataflow, TypeDataflow typeDataflow, boolean trackValueNumbers)
public void analyzeInstruction(org.apache.bcel.generic.Instruction ins) throws DataflowAnalysisException
AbstractFrameModelingVisitor
analyzeInstruction
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
ins
- the InstructionDataflowAnalysisException
- if an error occurs analyzing the instruction; in most cases,
this indicates that the bytecode for the method being
analyzed is invalidpublic int getSlotContainingNewNullValue()
public IsNullValue getDefaultValue()
AbstractFrameModelingVisitor
getDefaultValue
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public IsNullValue getReturnValueNullness(XMethod calledMethod)
public void visitPUTFIELD(org.apache.bcel.generic.PUTFIELD obj)
visitPUTFIELD
in interface org.apache.bcel.generic.Visitor
visitPUTFIELD
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitGETFIELD(org.apache.bcel.generic.GETFIELD obj)
visitGETFIELD
in interface org.apache.bcel.generic.Visitor
visitGETFIELD
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitGETSTATIC(org.apache.bcel.generic.GETSTATIC obj)
visitGETSTATIC
in interface org.apache.bcel.generic.Visitor
visitGETSTATIC
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitACONST_NULL(org.apache.bcel.generic.ACONST_NULL obj)
visitACONST_NULL
in interface org.apache.bcel.generic.Visitor
visitACONST_NULL
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitNEW(org.apache.bcel.generic.NEW obj)
visitNEW
in interface org.apache.bcel.generic.Visitor
visitNEW
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitNEWARRAY(org.apache.bcel.generic.NEWARRAY obj)
visitNEWARRAY
in interface org.apache.bcel.generic.Visitor
visitNEWARRAY
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitANEWARRAY(org.apache.bcel.generic.ANEWARRAY obj)
visitANEWARRAY
in interface org.apache.bcel.generic.Visitor
visitANEWARRAY
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitMULTIANEWARRAY(org.apache.bcel.generic.MULTIANEWARRAY obj)
visitMULTIANEWARRAY
in interface org.apache.bcel.generic.Visitor
visitMULTIANEWARRAY
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitLDC(org.apache.bcel.generic.LDC obj)
visitLDC
in interface org.apache.bcel.generic.Visitor
visitLDC
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
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<IsNullValue,IsNullValueFrame>
public void visitCHECKCAST(org.apache.bcel.generic.CHECKCAST obj)
visitCHECKCAST
in interface org.apache.bcel.generic.Visitor
visitCHECKCAST
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitINVOKESTATIC(org.apache.bcel.generic.INVOKESTATIC obj)
visitINVOKESTATIC
in interface org.apache.bcel.generic.Visitor
visitINVOKESTATIC
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitINVOKESPECIAL(org.apache.bcel.generic.INVOKESPECIAL obj)
visitINVOKESPECIAL
in interface org.apache.bcel.generic.Visitor
visitINVOKESPECIAL
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitINVOKEINTERFACE(org.apache.bcel.generic.INVOKEINTERFACE obj)
visitINVOKEINTERFACE
in interface org.apache.bcel.generic.Visitor
visitINVOKEINTERFACE
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
public void visitINVOKEVIRTUAL(org.apache.bcel.generic.INVOKEVIRTUAL obj)
visitINVOKEVIRTUAL
in interface org.apache.bcel.generic.Visitor
visitINVOKEVIRTUAL
in class AbstractFrameModelingVisitor<IsNullValue,IsNullValueFrame>
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.