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.
Defines valid values for properties that refer to compiler phases.
Defines valid values for the deprecation
and unchecked
properties.
Defines valid values for the logging property.
Defines valid values for the target
property.
Instruct the compiler to use additional parameters
Instruct the compiler to use additional parameters
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
.
Transforms a file into a Scalac-readable string.
Transforms a file into a Scalac-readable string.
A file to convert.
A string-representation of the file like /x/k/a.scala
.
Transforms a path into a Scalac-readable string.
Transforms a path into a Scalac-readable string.
A path to convert.
A string-representation of the path like a.jar:b.jar
.
The boot class path to use for this compilation.
The boot class path to use for this compilation.
Generates a build error.
Generates a build error. Error location will be the current task in the ant file.
A message describing the error.
BuildException
A build error exception thrown in every case.
The class path to use for this compilation.
The class path to use for this compilation.
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
The path to use when finding scalac - *only used for forking!*
The path to use when finding scalac - *only used for forking!*
Sets the bootclasspath
as a nested bootclasspath Ant parameter.
Sets the bootclasspath
as a nested bootclasspath Ant parameter.
A source path to be configured.
Sets the classpath
as a nested classpath Ant parameter.
Sets the classpath
as a nested classpath Ant parameter.
A class path to be configured.
Sets the compilerarg
as a nested compilerarg Ant parameter.
Sets the compilerarg
as a nested compilerarg Ant parameter.
A compiler argument to be configured.
Sets the extdirs
as a nested extdirs Ant parameter.
Sets the extdirs
as a nested extdirs Ant parameter.
An extensions path to be configured.
Sets the sourcepath
as a nested sourcepath Ant parameter.
Sets the sourcepath
as a nested sourcepath Ant parameter.
A source path to be configured.
Sets the origin
as a nested src Ant parameter.
Sets the origin
as a nested src Ant parameter.
An origin path to be configured.
Instruct the compiler to generate debugging information
Instruct the compiler to generate debugging information
The dependency tracking file.
The dependency tracking file.
Instruct the compiler to generate deprecation information.
Instruct the compiler to generate deprecation information.
The directory to put the compiled files in.
The directory to put the compiled files in.
The character encoding of the files to compile.
The character encoding of the files to compile.
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.
Performs the compilation.
Performs the compilation.
Tests if a file exists and prints a warning in case it doesn't.
Tests if a file exists and prints a warning in case it doesn't. Always returns the file, even if it doesn't exist.
A file to test for existence.
The same file.
Instruct the compiler to explain type errors in more detail.
Instruct the compiler to explain type errors in more detail.
The external extensions path to use for this compilation.
The external extensions path to use for this compilation.
Indicates whether compilation errors will fail the build; defaults to true.
Indicates whether compilation errors will fail the build; defaults to true.
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
Whether to force compilation of all files or not.
Whether to force compilation of all files or not.
Whether to fork the execution of scalac
Whether to fork the execution of scalac
Gets the value of the bootclasspath
attribute in a
Scala-friendly form.
Gets the value of the bootclasspath
attribute in a
Scala-friendly form.
The boot class path as a list of files.
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
Gets the value of the classpath
attribute in a
Scala-friendly form.
Gets the value of the classpath
attribute in a
Scala-friendly form.
The class path as a list of files.
Gets the value of the destination
attribute in a
Scala-friendly form.
Gets the value of the destination
attribute in a
Scala-friendly form.
The destination as a file.
Gets the value of the extdirs
attribute in a
Scala-friendly form.
Gets the value of the extdirs
attribute in a
Scala-friendly form.
The extensions path as a list of files.
Gets the value of the origin
attribute in a
Scala-friendly form.
Gets the value of the origin
attribute in a
Scala-friendly form.
The origin path as a list of files.
Gets the value of the sourcepath
attribute in a
Scala-friendly form.
Gets the value of the sourcepath
attribute in a
Scala-friendly form.
The source path as a list of files.
The hashCode method for reference types.
Initializes settings and source files
Initializes settings and source files
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.
If forking, these are the arguments to the JVM
If forking, these are the arguments to the JVM
Which compilation phases should be logged during compilation.
Which compilation phases should be logged during compilation.
How much logging output to print.
How much logging output to print. Either none (default), verbose or debug.
Transforms a string name into a file relative to the build root directory.
Transforms a string name into a file relative to the build root directory.
A relative or absolute path to the file as a string.
A file created from the name.
Transforms a string name into a file relative to the provided base directory.
Transforms a string name into a file relative to the provided base directory.
A file pointing to the location relative to which the name will be resolved.
A relative or absolute path to the file as a string.
A file created from the name and the base file.
Equivalent to !(this eq that)
.
Equivalent to !(this eq that)
.
true
if the argument is not a reference to the receiver object; false
otherwise.
Instruct the compiler to not use the boot classpath for the scala jars.
Instruct the compiler to not use the boot classpath for the scala jars.
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
Instruct the compiler to generate no warnings.
Instruct the compiler to generate no warnings.
Instruct the compiler to run optimizations.
Instruct the compiler to run optimizations.
The directories that contain source files to compile.
The directories that contain source files to compile.
Encapsulates implementation of specific command line arguments.
Encapsulates implementation of specific command line arguments.
Prints out the files being compiled by the scalac ant task (not only the number of files).
Prints out the files being compiled by the scalac ant task (not only the number of files).
Set the addparams
info attribute.
Set the addparams
info attribute.
The value for addparams
.
Sets the argfile
attribute.
Sets the argfile
attribute. Used by Ant.
The value of argfile
.
Sets the boot classpath attribute.
Sets the boot classpath attribute. Used by Ant.
The value of bootclasspath
.
Sets the bootclasspath
as an external reference Ant
parameter.
Sets the bootclasspath
as an external reference Ant
parameter.
A reference to a source path.
Sets the classpath
attribute.
Sets the classpath
attribute. Used by Ant.
The value of classpath
.
Sets the classpath
as an external reference Ant parameter.
Sets the classpath
as an external reference Ant parameter.
A reference to a class path.
Sets the compilerPath
attribute.
Sets the compilerPath
attribute. Used by Ant.
The value of compilerPath
.
Sets the compilerpathref
attribute.
Sets the compilerpathref
attribute. Used by Ant.
The value of compilerpathref
.
Set the debug
info attribute.
Set the debug
info attribute.
The value for debug
.
Sets the dependencyfile
attribute.
Sets the dependencyfile
attribute. Used by Ant.
The value of dependencyfile
.
Set the deprecation
info attribute.
Set the deprecation
info attribute.
One of the flags yes/no
or on/off
.
Sets the destdir
attribute.
Sets the destdir
attribute. Used by Ant.
The value of destination
.
Sets the encoding
attribute.
Sets the encoding
attribute. Used by Ant.
The value of encoding
.
Set the explaintypes
info attribute.
Set the explaintypes
info attribute.
One of the flags yes/no
or on/off
.
Sets the external extensions path attribute.
Sets the external extensions path attribute. Used by Ant.
The value of extdirs
.
Sets the extdirs
as an external reference Ant parameter.
Sets the extdirs
as an external reference Ant parameter.
A reference to an extensions path.
Sets the failonerror
attribute.
Sets the failonerror
attribute. Used by Ant.
The value for failonerror
.
Sets the force
attribute.
Sets the force
attribute. Used by Ant.
The value for force
.
Sets the fork
attribute.
Sets the fork
attribute. Used by Ant.
The value for fork
.
Sets the jvmargs
attribute.
Sets the jvmargs
attribute. Used by Ant.
The value for jvmargs
Sets the logphase
attribute.
Sets the logphase
attribute. Used by Ant.
The value for logPhase
.
Sets the logging level attribute.
Sets the logging level attribute. Used by Ant.
The value for logging
.
Set the nobootcp
info attribute.
Set the nobootcp
info attribute.
One of the flags yes/no
or on/off
.
Set the nowarn
info attribute.
Set the nowarn
info attribute.
One of the flags yes/no
or on/off
.
Set the optimise
info attribute.
Set the optimise
info attribute.
One of the flags yes/no
or on/off
.
Set the scalacdebugging
info attribute.
Set the scalacdebugging
info attribute. If set to
true
, the scalac ant task will print out the filenames
being compiled.
The specified flag
Sets the sourcepath
attribute.
Sets the sourcepath
attribute. Used by Ant.
The value of sourcepath
.
Sets the sourcepath
as an external reference Ant parameter.
Sets the sourcepath
as an external reference Ant parameter.
A reference to a source path.
Sets the srcdir
attribute.
Sets the srcdir
attribute. Used by Ant.
The value of origin
.
Sets the origin
as an external reference Ant parameter.
Sets the origin
as an external reference Ant parameter.
A reference to an origin path.
Sets the target
attribute.
Sets the target
attribute. Used by Ant.
The value for target
.
Set the unchecked
info attribute.
Set the unchecked
info attribute.
One of the flags yes/no
or on/off
.
Set the usejavacp
info attribute.
Set the usejavacp
info attribute.
One of the flags yes/no
or on/off
.
The source path to use for this compilation.
The source path to use for this compilation.
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.
Instruct the compiler to generate unchecked information.
Instruct the compiler to generate unchecked information.
Instruct the compiler to use java.class.path
in classpath resolution.
Instruct the compiler to use java.class.path
in classpath resolution.
An Ant task to compile with the new Scala compiler (NSC).
This task can take the following parameters as attributes:
srcdir
(mandatory),srcref
,destdir
,classpath
,classpathref
,sourcepath
,sourcepathref
,bootclasspath
,bootclasspathref
,extdirs
,extdirsref
,argfile
,dependencyfile
,encoding
,target
,force
,fork
,logging
,logphase
,debuginfo
,addparams
,explaintypes
,deprecation
,nobootcp
,nowarn
,optimise
,unchecked
,usejavacp
,failonerror
,scalacdebugging
,It also takes the following parameters as nested elements:
src
(forsrcdir
),classpath
,sourcepath
,bootclasspath
,extdirs
,compilerarg
.