scala

native

class native extends Annotation with StaticAnnotation

Marker for native methods.

@native def f(x: Int, y: List[Long]): String = ...

Method body is not generated if method is marked with @native, but it is type checked when present.

linear super types: StaticAnnotation, Annotation, AnyRef, Any
source: native.scala
    since
  1. 2.6

Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. native
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Instance constructors

  1. new native ()