in scala
class Symbol

final case class Symbol
extends java.lang.Object
with scala.ScalaObject
with scala.Product

Instances of Symbol can be created easily with Scala's built-in quote mechanism.

For instance, the Scala term 'mysym will invoke the constructor of the Symbol class in the following way: new Symbol("mysym").

Author:
Martin Odersky
Version:
1.7, 08/12/2003

Constructor Summary
def this (name: java.lang.String)

Val Summary
val name : java.lang.String

Def Summary
final override def $tag : scala.Int

final override def arity : scala.Int

final override def element (x$1: scala.Int) : scala.Any

override def equals (x$1: scala.Any) : scala.Boolean

override def hashCode : scala.Int

def intern : scala.Symbol

Makes this symbol into a unique reference.

If two interened symbols are equal (i.e. they have the same name) then they must be identical (wrt reference equality).


final override def productPrefix : java.lang.String

override def toString : java.lang.String
Converts this symbol to a string.
Def inherited from scala.Product
arity , element, productPrefix
Constructor Detail
def this (name: java.lang.String)

Val Detail
val name : java.lang.String

Def Detail
final override def $tag : scala.Int

final override def arity : scala.Int

final override def element (x$1: scala.Int): scala.Any

override def equals (x$1: scala.Any): scala.Boolean

override def hashCode : scala.Int

def intern : scala.Symbol

Makes this symbol into a unique reference.

If two interened symbols are equal (i.e. they have the same name) then they must be identical (wrt reference equality).

Returns:
the unique reference to this symbol.

final override def productPrefix : java.lang.String

override def toString : java.lang.String
Converts this symbol to a string.