LOTUSSCRIPT LANGUAGE


Modifier property
Example

This returns the modifier value(s) for a Java method. The property is read only.

Defined in

JavaMethod

Data type

Long

Syntax

To get: Long = javamethod.Modifier

Usage

The Modifier property returns a combination of bits for the modifier(s) of the Java method (as specified by javamethod) as follows:

ModifierBit
public1
static8
final16
synchronized32
native256
abstract1,024
For example, if a method is declared in Java as "public static" the value of Modifier would be 9: the value of 1 for public added to the value of 8 for static.

Note The keywords private and protected are not available (private and protected methods are not available with LS2J).

Example
See Also