Object/Class

org.opalj.br

Method

Related Docs: class Method | package br

Permalink

object Method

Defines factory and extractor methods for Method objects.

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(accessFlags: Int = ACC_ABSTRACT.mask | ACC_PUBLIC.mask, name: String, parameterTypes: IndexedSeq[FieldType] = IndexedSeq.empty, returnType: Type = VoidType, attributes: Attributes = Seq.empty[Attribute]): Method

    Permalink

    Factory for Method objects.

    Factory for Method 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): Method

    Permalink

    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

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

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def defaultConstructor(superclassType: ObjectType = ObjectType.Object): Method

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isObjectSerializationRelated(method: Method, isInheritedBySerializableOnlyClass: ⇒ Answer, isInheritedByExternalizableClass: ⇒ Answer): Boolean

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def unapply(method: Method): Option[(Int, String, MethodDescriptor)]

    Permalink
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped