Test two objects for inequality.
Test two objects for inequality.
true
if !(this == that), false otherwise.
Equivalent to x.hashCode
except for boxed numeric types and null
.
Equivalent to x.hashCode
except for boxed numeric types and null
.
For numerics, it returns a hash value which is consistent
with value equality: if two value type instances compare
as true, then ## will produce the same hash value for each
of them.
For null
returns a hashcode where null.hashCode
throws a
NullPointerException
.
a hash value consistent with ==
The expression x == that
is equivalent to if (x eq null) that eq null else x.equals(that)
.
The expression x == that
is equivalent to if (x eq null) that eq null else x.equals(that)
.
true
if the receiver object is equivalent to the argument; false
otherwise.
Add forwarders for all methods defined in module
that don't conflict
with methods in the companion class of module
.
Add forwarders for all methods defined in module
that don't conflict
with methods in the companion class of module
. A conflict arises when
a method with the same name is defined both in a class and its companion object:
method signature is not taken into account.
Adds a @remote annotation, actual use unknown.
Adds a @remote annotation, actual use unknown.
Invoked from genMethod() and addForwarder().
Cast the receiver object to be of type T0
.
Cast the receiver object to be of type T0
.
Note that the success of a cast at runtime is modulo Scala's erasure semantics.
Therefore the expression 1.asInstanceOf[String]
will throw a ClassCastException
at
runtime, while the expression List(1).asInstanceOf[List[String]]
will not.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the requested type.
the receiver object.
ClassCastException
if the receiver object is not an instance of the erasure of type T0
.
Create a copy of the receiver object.
Create a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
a copy of the receiver object.
not specified by SLS as a member of AnyRef
Returns a new ClassWriter for the class given by arguments.
Returns a new ClassWriter for the class given by arguments.
the class's access flags. This parameter also indicates if the class is deprecated.
the internal name of the class.
the signature of this class. May be null if the class is not a generic one, and does not extend or implement generic classes or interfaces.
the internal of name of the super class. For interfaces, the super class is Object. May be null, but only for the Object class.
the internal names of the class's interfaces (see
getInternalName
). May be
null.
Tests whether the argument (that
) is a reference to the receiver object (this
).
Tests whether the argument (that
) is a reference to the receiver object (this
).
The eq
method implements an equivalence relation on
non-null instances of AnyRef
, and has three additional properties:
x
and y
of type AnyRef
, multiple invocations of
x.eq(y)
consistently returns true
or consistently returns false
.x
of type AnyRef
, x.eq(null)
and null.eq(x)
returns false
.null.eq(null)
returns true
. When overriding the equals
or hashCode
methods, it is important to ensure that their behavior is
consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2
), they
should be equal to each other (o1 == o2
) and they should hash to the same value (o1.hashCode == o2.hashCode
).
true
if the argument is a reference to the receiver object; false
otherwise.
The equality method for reference types.
Called by the garbage collector on the receiver object when there are no more references to the object.
Called by the garbage collector on the receiver object when there are no more references to the object.
The details of when and if the finalize
method is invoked, as
well as the interaction between finalize
and non-local returns
and exceptions, are all platform dependent.
not specified by SLS as a member of AnyRef
Generate a mirror class for a top-level module.
Generate a mirror class for a top-level module. A mirror class is a class containing only static methods that forward to the corresponding method on the MODULE instance of the given Scala object. It will only be generated if there is no companion class: if there is, an attempt will instead be made to add the forwarder methods to the companion class.
Returns a ScalaSignature annotation if it must be added to this class, none otherwise.
Returns a ScalaSignature annotation if it must be added to this class, none otherwise. This annotation must be added to the class' annotations list when generating them.
Depending on whether the returned option is defined, it adds to jclass
one of:
(a) the ScalaSig marker attribute
(indicating that a scala-signature-annotation aka pickle is present in this class); or
(b) the Scala marker attribute
(indicating that a scala-signature-annotation aka pickle is to be found in another file).
The class file that is being readied.
The symbol for which the signature has been entered in the symData map. This is different than the symbol that is being generated in the case of a mirror class.
An option that is:
A representation that corresponds to the dynamic class of the receiver object.
A representation that corresponds to the dynamic class of the receiver object.
The nature of the representation is platform dependent.
a representation that corresponds to the dynamic class of the receiver object.
not specified by SLS as a member of AnyRef
Quoting from JVMS 4.7.5 The Exceptions Attribute "The Exceptions attribute indicates which checked exceptions a method may throw.
Quoting from JVMS 4.7.5 The Exceptions Attribute "The Exceptions attribute indicates which checked exceptions a method may throw. There may be at most one Exceptions attribute in each method_info structure."
The contents of that attribute are determined by the String[] exceptions
argument to ASM's ClassVisitor.visitMethod()
This method returns such list of internal names.
The hashCode method for reference types.
For given symbol return a symbol corresponding to a class that should be declared as inner class.
For given symbol return a symbol corresponding to a class that should be declared as inner class.
For example: class A { class B object C }
then method will return: NoSymbol for A, the same symbol for A.B (corresponding to A$B class), and A$C$ symbol for A.C.
Test whether the dynamic type of the receiver object is T0
.
Test whether the dynamic type of the receiver object is T0
.
Note that the result of the test is modulo Scala's erasure semantics.
Therefore the expression 1.isInstanceOf[String]
will return false
, while the
expression List(1).isInstanceOf[List[String]]
will return true
.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the specified type.
true
if the receiver object is an instance of erasure of type T0
; false
otherwise.
Return the name of this symbol that can be used on the Java platform.
Return the name of this symbol that can be used on the Java platform. It removes spaces from names.
Special handling: scala.Nothing erases to scala.runtime.Nothing$ scala.Null erases to scala.runtime.Null$
This is needed because they are not real classes, and they mean 'abrupt termination upon evaluation of that expression' or null respectively. This handling is done already in GenICode, but here we need to remove references from method signatures to these types, because such classes cannot exist in the classpath: the type checker will be very confused.
Specialized array conversion to prevent calling java.lang.reflect.Array.newInstance via TraversableOnce.toArray
Specialized array conversion to prevent calling java.lang.reflect.Array.newInstance via TraversableOnce.toArray
Equivalent to !(this eq that)
.
Equivalent to !(this eq that)
.
true
if the argument is not a reference to the receiver object; false
otherwise.
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up a single thread that is waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Wakes up all threads that are waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.
builder of mirror classes