Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: FxObj
Wraps FXGL's ReflectionFunctionCaller (com.almasb.fxgl.core.reflect.ReflectionFunctionCaller), a "call any registered method by string name" utility used by FXGL's dev console and dialogue function-call nodes. Useful for building in-game debug consoles in Aussom games.
ReflectionFunctionCaller ()
Creates a new empty caller. Register methods with addFunctionCallTarget before invoking by name.
adopt (object Ajo)
Wraps an existing ReflectionFunctionCaller AussomJavaObject.
Ajo is an AussomJavaObject around the caller.A new wrapper.addFunctionCallTarget (object TargetObj)
Registers the public methods of the given object as callable targets.
TargetObj is an AussomJavaObject around the target.this objectinvokeMethod (string MethodName, list Args)
Invokes a previously registered method by name with the supplied (string) arguments. Returns the method's return value (or null for void).
MethodName is the method name to invoke.Args is a list of stringified arguments.The method result.removeFunctionCallTarget (object TargetObj)
Removes a previously registered function call target.
exists (string MethodName, int ArgCount)
Returns true when a method named MethodName with exactly ArgCount string arguments is registered.
getMethods ()
Returns the live List
of every registered method as a raw AJO. Useful for building a help / list-commands UI.
getDefaultFunctionHandler ()
Returns the BiFunction<String, List
, Object> handler invoked when call() is asked for a method that isn't registered. Null when no fallback is installed.
setDefaultFunctionHandler (callback Cb)
Installs a fallback handler invoked when call() is asked for an unknown method. The handler receives (name, args) and returns the value to feed back to the caller.
Cb is a callback (name, args) -> any.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.