Package randoop.util

Class ReflectionCode

    • Field Detail

      • hasStarted

        private boolean hasStarted
        Has this started execution?
      • hasRun

        private boolean hasRun
        Has this been executed already?
      • retval

        protected Object retval
        The value yielded by execution.
      • exceptionThrown

        protected Throwable exceptionThrown
        The exception thrown by execution.
    • Constructor Detail

      • ReflectionCode

        public ReflectionCode()
    • Method Detail

      • hasStarted

        public final boolean hasStarted()
      • hasRun

        public final boolean hasRun()
      • setHasStarted

        protected final void setHasStarted()
      • setHasRun

        protected final void setHasRun()
      • runReflectionCodeRaw

        protected abstract void runReflectionCodeRaw()
                                              throws ReflectionCode.ReflectionCodeException
        Execute the reflection code. All Randoop implementation errors must be thrown as ReflectionCodeException because everything else is caught.
        Throws:
        ReflectionCode.ReflectionCodeException - if execution results in conflicting error and success states; this results from a bug in Randoop
      • getReturnValue

        public Object getReturnValue()
      • getExceptionThrown

        public Throwable getExceptionThrown()
      • status

        protected String status()
        A suffix to be called by toString().
        Returns:
        the status of the command