protected void | addClassJavadoc(String className, String code)
|
protected void | addCustomJavaCode(String className, String code)
|
protected void | addTypeInfo(TypeInfo info)
|
boolean | allStatic() - Returns true if the emission style is AllStatic.
|
String | className() - Returns the class name parsed from the configuration file.
|
List | customCCode() - Returns, as a List of Strings, the custom C code to be emitted
along with the glue code for the main class.
|
List | customJavaCodeForClass(String className) - Returns a list of Strings containing user-implemented code for
the given Java type name (not fully-qualified, only the class
name); returns either null or an empty list if there is no
custom code for the class.
|
protected void | dispatch(String cmd, StringTokenizer tok, File file, String filename, int lineNo)
|
protected void | doInclude(StringTokenizer tok, File file, String filename, int lineNo)
|
protected void | doIncludeAs(StringTokenizer tok, File file, String filename, int lineNo)
|
int | emissionStyle() - Returns the code emission style (constants in JavaEmitter) parsed from the configuration file.
|
boolean | emitImpl() - Returns true if an implementing class should be emitted during glue code generation.
|
boolean | emitInterface() - Returns true if an interface should be emitted during glue code generation.
|
List | extendedInterfaces(String interfaceName) - Returns a List of Strings indicating the interfaces the passed
interface should declare it extends.
|
boolean | flattenNIOVariants() - Returns true if, for the plethora of java.nio variants generated
for primitive C pointer types, the emitter should flatten the
output down to two variants: one taking only Java primitive
arrays as arguments, and one taking only java.nio.Buffers as
arguments.
|
boolean | forcedNio(String functionName) - Returns true if the user requested that the given function
should create a java.nio variant for the given function's
void* and other C primitive pointers, overriding
the NIO mode default.
|
List | forcedStructs() - Returns, as a List of Strings, the structs for which glue code
emission should be forced.
|
String | implClassName() - Returns the implementation class name parsed from the configuration file.
|
String | implPackageName() - Returns the implementation package name parsed from the configuration file.
|
List | implementedInterfaces(String className) - Returns a List of Strings indicating the interfaces the passed
class should declare it implements.
|
List | imports() - Returns the list of imports that should be emitted at the top of each .java file.
|
boolean | isUnimplemented(String symbol) - Returns true if this function should be given a body which
throws a run-time exception with an "unimplemented" message
during glue code generation.
|
String | javaOutputDir() - Returns the Java code output directory parsed from the configuration file.
|
List | javadocForClass(String className) - Returns a list of Strings containing Javadoc documentation for
the given Java type name (not fully-qualified, only the class
name); returns either null or an empty list if there is no
Javadoc documentation for the class.
|
boolean | manuallyImplement(String functionName) - Returns true if the glue code for the given function will be
manually implemented by the end user.
|
List | mirroredArgs(String functionName) - Returns a List of Integers indicating the indices of arguments
in this function that should be expanded to the same type when
binding functions with multiple void* arguments.
|
String | nativeOutputDir() - Returns the native code output directory parsed from the configuration file.
|
boolean | nativeOutputUsesJavaHierarchy() - Returns whether the native code directory structure mirrors the Java hierarchy.
|
int | nioMode() - Returns the default NIO generation mode for C primitive pointer
arguments.
|
boolean | nioOnly(String functionName) - Returns true if the given function should only create a java.nio
variant, and no array variants, for
void* and other
C primitive pointers.
|
boolean | noNio(String functionName) - Returns true if the user requested that the given function
should only create array variants, and no java.nio variant, for
void* and other C primitive pointers, overriding
the NIO mode default.
|
String | packageForStruct(String structName) - Returns the package into which to place the glue code for
accessing the specified struct.
|
String | packageName() - Returns the package name parsed from the configuration file.
|
protected static TypeInfo | parseTypeInfo(String cType, JavaType javaType)
|
void | read(String filename) - Reads the configuration file.
|
protected void | read(String filename, String linePrefix) - Reads the specified file, treating each line as if it started with the
specified string.
|
protected void | readArgumentIsString(StringTokenizer tok, String filename, int lineNo) - When const char* arguments in the C function prototypes are encountered,
the emitter will normally convert them to
byte[]
arguments.
|
protected Boolean | readBoolean(String cmd, StringTokenizer tok, String filename, int lineNo)
|
protected void | readClassJavadoc(StringTokenizer tok, String filename, int lineNo)
|
protected void | readCustomCCode(StringTokenizer tok, String filename, int lineNo)
|
protected void | readCustomJavaCode(StringTokenizer tok, String filename, int lineNo)
|
protected void | readExtend(StringTokenizer tok, String filename, int lineNo)
|
protected void | readIgnore(StringTokenizer tok, String filename, int lineNo)
|
protected void | readIgnoreField(StringTokenizer tok, String filename, int lineNo)
|
protected void | readIgnoreNot(StringTokenizer tok, String filename, int lineNo)
|
protected void | readImplements(StringTokenizer tok, String filename, int lineNo)
|
protected void | readManuallyImplement(StringTokenizer tok, String filename, int lineNo)
|
protected void | readMirrorExpandedBindingArgs(StringTokenizer tok, String filename, int lineNo) - When void* arguments in the C function prototypes are encountered, the
emitter will try to expand the binding and create Java entry points for
all possible array types.
|
protected void | readNioMode(StringTokenizer tok, String filename, int lineNo) - Sets the default NIO generation mode for C primitive
pointers.
|
protected void | readOpaque(StringTokenizer tok, String filename, int lineNo)
|
protected void | readRenameJavaType(StringTokenizer tok, String filename, int lineNo)
|
protected void | readReturnValueCapacity(StringTokenizer tok, String filename, int lineNo)
|
protected void | readReturnValueLength(StringTokenizer tok, String filename, int lineNo)
|
protected void | readReturnedArrayLength(StringTokenizer tok, String filename, int lineNo)
|
protected void | readReturnsString(StringTokenizer tok, String filename, int lineNo)
|
protected String | readString(String cmd, StringTokenizer tok, String filename, int lineNo)
|
protected void | readStructPackage(StringTokenizer tok, String filename, int lineNo)
|
protected void | readTemporaryCVariableAssignment(StringTokenizer tok, String filename, int lineNo)
|
protected void | readTemporaryCVariableDeclaration(StringTokenizer tok, String filename, int lineNo)
|
protected void | readUnimplemented(StringTokenizer tok, String filename, int lineNo)
|
String | renameJavaType(String javaTypeName) - Returns a replacement name for this type, which should be the
name of a Java wrapper class for a C struct, or the name
unchanged if no RenameJavaType directive was specified for this
type.
|
String | returnValueCapacity(String functionName) - Returns a MessageFormat string of the C expression calculating
the capacity of the java.nio.ByteBuffer being returned from a
native method, or null if no expression has been specified.
|
String | returnValueLength(String functionName) - Returns a MessageFormat string of the C expression calculating
the length of the array being returned from a native method, or
null if no expression has been specified.
|
String | returnedArrayLength(String functionName) - Provides a Java MessageFormat expression indicating the number
of elements in the returned array from the specified function
name.
|
boolean | returnsString(String functionName) - Indicates whether the given function (which returns a
char* in C) should be translated as returning a
java.lang.String .
|
String | runtimeExceptionType() - Returns the kind of exception to raise if run-time checks fail in the generated code.
|
boolean | shouldIgnore(String symbol) - Returns true if this #define, function, struct, or field within
a struct should be ignored during glue code generation.
|
List | stringArguments(String functionName) - Returns a list of
Integer s which are the indices of const char*
arguments that should be converted to String s.
|
protected Class | stringToPrimitiveType(String type)
|
List | temporaryCVariableAssignments(String functionName) - Returns a List of Strings of expressions containing assignments
to temporary C variables in the glue code for the specified
function.
|
List | temporaryCVariableDeclarations(String functionName) - Returns a List of Strings of expressions declaring temporary C
variables in the glue code for the specified function.
|
TypeInfo | typeInfo(net.java.games.gluegen.cgram.types.Type type, net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary) - If this type should be considered opaque, returns the TypeInfo
describing the replacement type.
|