Modifier property (JavaMethod - LotusScript® Language)

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:

Modifier

Bit

public

1

static

8

final

16

synchronized

32

native

256

abstract

1,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