object Method
Defines factory and extractor methods for Method objects.
- Alphabetic
- By Inheritance
- Method
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 = RefArray.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
trueif a method declared by a subclass in the packagedeclaringPackageOfSubclassMethodcan directly override a method which has the given visibility and package. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def defaultConstructor(superclassType: ObjectType = ObjectType.Object): MethodTemplate
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
trueif the method is object serialization related.Returns
trueif the method is object serialization related. That is, if the declaring class isExternalizablethen the methodsreadObjectandwriteObjectare 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
Yesiff this method is defined in aSerializableclass or is inherited by at least one class that is (just)Serializable, but which is notExternalizable.- isInheritedByExternalizableClass
This parameter should be
Yesiff the method's defining class isExternalizableor 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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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[org.opalj.br]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )