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().
Compute the indexes of each local variable of the given method.
Compute the indexes of each local variable of the given method. *Does not assume the parameters come first!*
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
Type#getInternalName() getInternalName
). May be
null.
Invoked from genMethod() and addStaticInit()
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:
Quoting from JVMS 4.
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.
@return
@return
null
if no Java signature is to be added (null
is what ASM expects in these cases).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.
Return the a name of this symbol that can be used on the Java platform.
Return the a 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.
Just a namespace for utilities that encapsulate MethodVisitor idioms.
Specialized array conversion to prevent calling java.
Specialized array conversion to prevent calling java.lang.reflect.Array.newInstance via TraversableOnce.toArray
(Since version 2.10.0) Use leftOfArrow instead
(Since version 2.10.0) Use resultOfEnsuring instead
builder of plain classes