|
Scala 2.4.0-final
|
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")
.
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 |
Val Detail |
Def Detail |
final override
def
$tag
: scala.Int
final override
def
arity
: scala.Int
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