object Method
- Alphabetic
- By Inheritance
- Method
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(accessFlags: Int = ACC_ABSTRACT.mask | ACC_PUBLIC.mask, name: String, parameterTypes: FieldTypes = NoFieldTypes, returnType: Type = VoidType, attributes: Attributes = ArraySeq.empty): MethodTemplate
Factory for MethodTemplate objects.
Factory for MethodTemplate objects.
A new method that is public abstract that takes no parameters and returns void and has the name "myMethod" can be created as shown next:
val myMethod = Method(name="myMethod");
Example: - def apply(accessFlags: Int, name: String, descriptor: MethodDescriptor, attributes: Attributes): MethodTemplate
- name
The name of the method. In case of a constructor the method name has to be "<init>". In case of a static initializer the name has to be "<clinit>".
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canDirectlyOverride(declaringPackageOfSubclassMethod: String, superclassMethodVisibility: Option[VisibilityModifier], declaringPackageOfSuperclassMethod: String): Boolean
Returns
true
if a method declared by a subclass in the packagedeclaringPackageOfSubclassMethod
can directly override a method which has the given visibility and package. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def defaultConstructor(superclassType: ObjectType = ObjectType.Object): MethodTemplate
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNativeAndVarargs(accessFlags: Int): Boolean
- Annotations
- @inline()
- def isObjectSerializationRelated(method: Method, isInheritedBySerializableOnlyClass: => Answer, isInheritedByExternalizableClass: => Answer): Boolean
Returns
true
if the method is object serialization related.Returns
true
if the method is object serialization related. That is, if the declaring class isExternalizable
then the methodsreadObject
andwriteObject
are unused. If the declaring class is onlySeralizable
, then the write and read external methods are not serialization related unless a subclass exists that inherits these two methods and implements the interfaceExternalizable
.- method
A method defined by a class that inherits from Serializable or which has at least one sublcass that is Serializable and that inherits the given method.
- isInheritedBySerializableOnlyClass
This parameter should be
Yes
iff this method is defined in aSerializable
class or is inherited by at least one class that is (just)Serializable
, but which is notExternalizable
.- isInheritedByExternalizableClass
This parameter should be
Yes
iff the method's defining class isExternalizable
or if this method is inherited by at least one class that isExternalizable
.
- Note
Calling this method only makes sense if the given class or a subclass thereof is at least
Serializable
.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(method: JVMMethod): Option[(Int, String, MethodDescriptor)]
- def unattached(accessFlags: Int, name: String, descriptor: MethodDescriptor, attributes: Attributes): Method
- Attributes
- protected[br]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated