Class

org.scalamock.clazz.MockMaker

MockMakerInner

Related Doc: package MockMaker

Permalink

class MockMakerInner[T] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockMakerInner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MockMakerInner(mockContext: C.Expr[MockContext], stub: Boolean, mockName: Option[C.Expr[String]])(implicit arg0: C.WeakTypeTag[T])

    Permalink

Type Members

  1. class MockNameGenerator extends AnyRef

    Permalink

    Class that is responsible for creating mock (and its methods) names so they can be reported on expectations error.

    Class that is responsible for creating mock (and its methods) names so they can be reported on expectations error. It either uses mock name specified by user or asks mockContext to generate new one.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val anon: scala.reflect.macros.Universe.TypeName

    Permalink
  5. def anonClass(members: List[scala.reflect.macros.Universe.Tree]): scala.reflect.macros.Universe.Block

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buildForwarderParams(methodType: scala.reflect.macros.Universe.Type): List[List[scala.reflect.macros.Universe.ValDef]]

    Permalink
  8. def classType(paramCount: Int): scala.reflect.macros.Universe.Type

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def forwarderImpl(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.ValOrDefDef

    Permalink
  13. def forwarderParamType(t: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree

    Permalink

    Translates forwarder parameters into Trees.

    Translates forwarder parameters into Trees. Also maps Java repeated params into Scala repeated params

  14. val forwarders: List[scala.reflect.macros.Universe.ValOrDefDef]

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def initDef: scala.reflect.macros.Universe.DefDef

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isPathDependentThis(t: scala.reflect.macros.Universe.Type): Boolean

    Permalink
  20. def make: C.Expr[T]

    Permalink
  21. val members: List[scala.reflect.macros.Universe.ValOrDefDef]

    Permalink
  22. def methodDef(m: scala.reflect.macros.Universe.MethodSymbol, methodType: scala.reflect.macros.Universe.Type, body: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.DefDef

    Permalink
  23. def methodImpl(m: scala.reflect.macros.Universe.MethodSymbol, methodType: scala.reflect.macros.Universe.Type, body: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.DefDef

    Permalink
  24. def methodsNotInObject: Iterable[scala.reflect.macros.Universe.MethodSymbol]

    Permalink
  25. val methodsToMock: List[scala.reflect.macros.Universe.MethodSymbol]

    Permalink
  26. def mockFunctionClass(paramCount: Int): scala.reflect.macros.Universe.Type

    Permalink
  27. def mockFunctionName(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.TermName

    Permalink
  28. def mockMethod(m: scala.reflect.macros.Universe.MethodSymbol): scala.reflect.macros.Universe.ValDef

    Permalink
  29. val mockNameGenerator: MockNameGenerator

    Permalink
  30. def mockParamType(t: scala.reflect.macros.Universe.Type): scala.reflect.macros.Universe.Tree

    Permalink

    Translates mock function parameters into Trees.

    Translates mock function parameters into Trees. The difference between forwarderParamType is that: T* and T... are translated into Seq[T]

    see issue #24

  31. val mocks: List[scala.reflect.macros.Universe.ValDef]

    Permalink
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. def resolvedType(m: scala.reflect.macros.Universe.Symbol): scala.reflect.macros.Universe.Type

    Permalink
  36. def stubFunctionClass(paramCount: Int): scala.reflect.macros.Universe.Type

    Permalink
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. val typeToMock: scala.reflect.macros.Universe.Type

    Permalink
  40. val utils: MacroUtils[ctx.type]

    Permalink
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped