Class MethodSummary


  • public class MethodSummary
    extends Object
    Summary information for a method.
    • Field Detail

      • NO_STATEMENTS

        protected static final SSAInstruction[] NO_STATEMENTS
    • Method Detail

      • getNumberOfStatements

        public int getNumberOfStatements()
      • addStatement

        public void addStatement​(SSAInstruction statement)
      • getMethod

        public MemberReference getMethod()
        Returns the method.
        Returns:
        MethodReference
      • isNative

        public boolean isNative()
      • addPoison

        public void addPoison​(String reason)
        Parameters:
        reason -
      • hasPoison

        public boolean hasPoison()
      • getPoison

        public String getPoison()
      • setPoisonLevel

        public void setPoisonLevel​(byte b)
      • getPoisonLevel

        public byte getPoisonLevel()
      • getNumberOfParameters

        public int getNumberOfParameters()
        Returns:
        the number of parameters, including the implicit 'this'
      • isStatic

        public boolean isStatic()
      • setStatic

        public void setStatic​(boolean b)
      • getParameterType

        public TypeReference getParameterType​(int i)
        Note that by convention, getParameterType(0) == this for non-static methods.
      • getNextProgramCounter

        public int getNextProgramCounter()
      • setFactory

        public void setFactory​(boolean b)
        Record if this is a "factory" method; meaning it returns some object which we know little about ... usually we'll resolve this based on downstream uses of the object
        Parameters:
        b -
      • isFactory

        public boolean isFactory()