Object/Class

com.avsystem.scex.presentation

SymbolAttributes

Related Docs: class SymbolAttributes | package presentation

Permalink

object SymbolAttributes extends SymbolDsl

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SymbolAttributes
  2. SymbolDsl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait AttachPayload extends AnyRef

    Permalink
    Definition Classes
    SymbolDsl
  2. trait AttachedPayload extends AnyRef

    Permalink
    Definition Classes
    SymbolDsl
  3. trait CompleteWildcardSelector extends Any

    Permalink
    Definition Classes
    SymbolDsl
  4. trait DirectMemberSubsets extends ScalaMemberSubsets

    Permalink
    Definition Classes
    SymbolDsl
  5. trait DirectWildcardSelector extends WildcardSelector

    Permalink
    Definition Classes
    SymbolDsl
  6. trait MemberSubsets extends Any

    Permalink
    Definition Classes
    SymbolDsl
  7. trait MembersNamed extends Dynamic

    Permalink
    Definition Classes
    SymbolDsl
  8. type Payload = Attributes

    Permalink
    Definition Classes
    SymbolAttributesSymbolDsl
  9. trait ScalaMemberSubsets extends MemberSubsets

    Permalink
    Definition Classes
    SymbolDsl
  10. trait ScopeSpecifiers extends Any

    Permalink
    Definition Classes
    SymbolDsl
  11. trait WildcardSelector extends Any

    Permalink
    Definition Classes
    SymbolDsl
  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]

    Definition Classes
    SymbolDsl
  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 _
    }
    }
    

    Definition Classes
    SymbolDsl

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
    

    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  5. def apply(attrList: List[SymbolInfo[Attributes]]): SymbolAttributes

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. macro def attributes(any: Any): List[SymbolInfo[Attributes]]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val empty: SymbolAttributes

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. 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
    

    Definition Classes
    SymbolDsl
  20. implicit def payloadAttach(any: Any): AttachPayload

    Permalink
    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    SymbolDsl
    Annotations
    @compileTimeOnly( ... )
  23. def toString(): String

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

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

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

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

Inherited from SymbolDsl

Inherited from AnyRef

Inherited from Any

Ungrouped