Skip to content

Modifiers

Renders the modifiers based on the provided props.

Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so

<Class public final abstract />

Error will be thrown if try to specify multiple access modifiers

import { Modifiers } from "@alloy-js/java";
<Modifiers
abstract
default
final
native
private
protected
public
static
strictfp
synchronized
transient
volatile
/>
abstractoptional boolean
defaultoptional boolean
finaloptional boolean
nativeoptional boolean
privateoptional boolean
protectedoptional boolean
publicoptional boolean
staticoptional boolean
strictfpoptional boolean
synchronizedoptional boolean
transientoptional boolean
volatileoptional boolean