All Packages Class Hierarchy This Package Previous Next Index
Class org.ifarchive.glk.Function
java.lang.Object
|
+----org.ifarchive.glk.Function
- public class Function
- extends Object
A Glk dispatch function description.
Note that the function pointer doesn't percolate up to the Java
layer; only C sees it.
-
id
- The function's dispatch ID.
-
name
- The name of this function.
-
count()
- Return count of Glk functions.
-
get(int)
- Get a Glk function by its index
-
getByID(int)
- Get a Glk function by its ID.
-
parsedPrototype()
- Parse the prototype string for a function and display it.
-
parsedPrototype(int)
- Parse the prototype string for a function and display it.
-
prototype()
- Get prototype string for a function.
-
prototype(int)
- Get prototype string for a function.
name
public String name
- The name of this function.
id
public int id
- The function's dispatch ID.
prototype
public String prototype()
- Get prototype string for a function.
See the Glk specification for full details.
- Returns:
- The prototype string; null if the function can't be invoked through Glk.dispatchCall()
- See Also:
- dispatchCall
count
public static int count()
- Return count of Glk functions.
- Returns:
- number of functions in this Glk library.
get
public static Function get(int index)
- Get a Glk function by its index
- Parameters:
- index - The number of the function, 0 - count()
- Returns:
- The corresponding Function, or null if there isn't one.
- See Also:
- count
getByID
public static Function getByID(int id)
- Get a Glk function by its ID.
- Parameters:
- id - The ID number for the function.
- Returns:
- The corresponding Function, or null if there isn't one.
prototype
public static String prototype(int func)
- Get prototype string for a function.
See the Glk specification for full details.
- Returns:
- The prototype string; null if the function can't be invoked through Glk.dispatchCall()
- See Also:
- dispatchCall
parsedPrototype
public String parsedPrototype()
- Parse the prototype string for a function and display it.
See the Glk specification for full details.
- Returns:
- A human-readable dump of the parsed data.
- See Also:
- dispatchCall
parsedPrototype
public static String parsedPrototype(int func)
- Parse the prototype string for a function and display it.
See the Glk specification for full details.
- Parameters:
- func - The Glk ID of the function.
- Returns:
- A human-readable dump of the parsed data.
- See Also:
- dispatchCall
All Packages Class Hierarchy This Package Previous Next Index