Packages

object Method

Defines factory and extractor methods for Method objects.

Source
Method.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Method
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(accessFlags: Int = ACC_ABSTRACT.mask | ACC_PUBLIC.mask, name: String, parameterTypes: FieldTypes = NoFieldTypes, returnType: Type = VoidType, attributes: Attributes = RefArray.empty): MethodTemplate

    Factory for MethodTemplate objects.

    Factory for MethodTemplate objects.

    Example:
    1. 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");
  5. 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>".

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def canDirectlyOverride(declaringPackageOfSubclassMethod: String, superclassMethodVisibility: Option[VisibilityModifier], declaringPackageOfSuperclassMethod: String): Boolean

    Returns true if a method declared by a subclass in the package declaringPackageOfSubclassMethod can directly override a method which has the given visibility and package.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  9. def defaultConstructor(superclassType: ObjectType = ObjectType.Object): MethodTemplate
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def isNativeAndVarargs(accessFlags: Int): Boolean
    Annotations
    @inline()
  16. 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 is Externalizable then the methods readObject and writeObject are unused. If the declaring class is only Seralizable, then the write and read external methods are not serialization related unless a subclass exists that inherits these two methods and implements the interface Externalizable.

    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 a Serializable class or is inherited by at least one class that is (just) Serializable, but which is not Externalizable.

    isInheritedByExternalizableClass

    This parameter should be Yes iff the method's defining class is Externalizable or if this method is inherited by at least one class that is Externalizable.

    Note

    Calling this method only makes sense if the given class or a subclass thereof is at least Serializable.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def unapply(method: JVMMethod): Option[(Int, String, MethodDescriptor)]
  23. def unattached(accessFlags: Int, name: String, descriptor: MethodDescriptor, attributes: Attributes): Method
    Attributes
    protected[br]
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped