Macro | Package: net.jlinker | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## def-java-static

Arguments: name (lisp-class &rest argtypes) &optional retmod

Like def-java-method, but to call a static method. The Lisp function defined has as many arguments as argtypes; there is no leading instance (dispatch) argument.

### Example

    (def-java-class (strict-math "java.lang.StrictMath") () () () ())

    (def-java-static (strict-abs "abs") (strict-math "int"))

This form defines an ordinary Lisp function strict-abs that calls the static method abs in the Java class `java.lang.StrictMath`.

    (strict-abs 17)

See jlinker.htm for more information on the jLinker facility.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version