Trait

com.avsystem.scex.symboldsl

SymbolDsl

Related Doc: package symboldsl

Permalink

trait SymbolDsl extends AnyRef

Author: ghik Created: 11/14/14.

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

Type Members

  1. trait AttachPayload extends AnyRef

    Permalink
  2. trait AttachedPayload extends AnyRef

    Permalink
  3. trait CompleteWildcardSelector extends Any

    Permalink
  4. trait DirectMemberSubsets extends ScalaMemberSubsets

    Permalink
  5. trait DirectWildcardSelector extends WildcardSelector

    Permalink
  6. trait MemberSubsets extends Any

    Permalink
  7. trait MembersNamed extends Dynamic

    Permalink
  8. abstract type Payload

    Permalink
  9. trait ScalaMemberSubsets extends MemberSubsets

    Permalink
  10. trait ScopeSpecifiers extends Any

    Permalink
  11. trait WildcardSelector extends Any

    Permalink
  12. class minus extends Annotation with StaticAnnotation

    Permalink

    Analogous to plus, but used to express wildcards with lower bounds, e.g.

    Analogous to plus, but used to express wildcards with lower bounds, e.g. java.lang.List[_ >: String]

  13. class plus extends Annotation with StaticAnnotation

    Permalink

    Type annotation that serves as an alternative way of expressing existential types (types with wildcards) with higher bounds in the symbol DSL.

    Type annotation that serves as an alternative way of expressing existential types (types with wildcards) with higher bounds in the symbol DSL.

    For example, imagine you want to allow invoking insert method on all lists of type java.util.List[_ <: Number]. Unfortunately, the following will NOT work:

    allow {
    on { l: java.util.List[_ <: Number] =>
    l.insert _  // won't typecheck
    }
    }
    

    Scala typechecker will report an error on l.insert _ because this method cannot be called when the element type of the list is unknown.

    To overcome this limitation, you can use alternative syntax to express the same:

    allow {
    on { l: java.util.List[Number@plus] =>
    l.insert _
    }
    }
    

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. def allStatic[A]: MemberSubsets

    Permalink

    Starts "wildcard" notation to allow or deny calling multiple Java static methods, with single DSL statement.

    Starts "wildcard" notation to allow or deny calling multiple Java static methods, with single DSL statement. For example:

    allStatic[String].membersNamed.valueOf
    

    Annotations
    @compileTimeOnly( ... )
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. macro def on[A](expr: (A) ⇒ Any): (A) ⇒ Any

    Permalink

    Starts a block that allows or denies calling some methods on instances of some type.

    Starts a block that allows or denies calling some methods on instances of some type. This is expressed using lambda expression like this:

    on { s: String =>
      s.compareTo _
      s.charAt _
      s.length
    }
    @param expr
    @tparam A
    @return
    

  17. implicit def payloadAttach(any: Any): AttachPayload

    Permalink
    Annotations
    @compileTimeOnly( ... )
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. implicit def toDirectWildcardSelector(any: Any): DirectWildcardSelector

    Permalink
    Annotations
    @compileTimeOnly( ... )
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped