final class VirtualFormalParameter extends AnyRef
Explicitly models a formal parameter of an virtual method to make it possible to store it in the property store and to compute properties for it. In contrast to the VirtualFormalParameter, which models a parameter of a concrete method, virtual methods include every possible method that overrides the method attached to the VirtualForwardingMethod.
The first parameter explicitly defined by the method will have the origin -2, the second one
will have the origin -3 and so on.
That is, the origin of an explicitly declared parameter is always -(parameter_index + 2).
The origin of the this parameter is -1.
It should be used to aggregate the properties for every VirtualFormalParameter of a method included in this virtual method.
- Note
The computational type category of the parameters is ignored to ease the mapping.
,This encoding is also used by the default three address code representation generated using a local data-flow analysis (see org.opalj.tac.TACAI). In case of the bytecode based data-flow analysis the origin used by the analysis reflects the position of the parameter value on the tac; see org.opalj.ai.parameterIndexToValueOrigin.
- Alphabetic
- By Inheritance
- VirtualFormalParameter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
VirtualFormalParameter(method: DeclaredMethod, origin: Int)
- method
The virtual method which contains the formal parameter.
- origin
The origin associated with the parameter. See the general description for further details.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- VirtualFormalParameter → 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
- VirtualFormalParameter → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val method: DeclaredMethod
-
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()
- val origin: Int
-
def
parameterIndex: Int
- returns
The index of the parameter or -1 if this formal parameter reflects the implicit
thisvalue.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- VirtualFormalParameter → AnyRef → Any
-
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( ... )