Skip to end of metadata
Go to start of metadata

Let's assume we have a simple class Names that defines the following methods:

The following sections illustrates static method invocation using FEST-Reflect. We will assume the following static import:

Without parameters and return type 'void'

Invoking the static method void clearCommon() in Names:

With parameters and return type 'void'

Invoking the static method void addCommon(String) in Names:

Without parameters and return type other than 'void'

Invoking the static method int sizeOfCommon() in Names:

With parameters and return type other than 'void'

Invoking the static method String getCommon(int) in Names:

See Also