| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | argumentsAreString
Key is function that has some byte[] or short[] arguments that should be converted to String args; value is List of Integer argument indices |
| private final Map | |
| private String | |
| private final List | |
| private final Map | |
| private static final boolean | |
| private final Map | |
| private JavaEmitter. | emissionStyle
Style of code emission. |
| private final Set | |
| private final Set | |
| private final Map | |
| private final Set | |
| private final Set | |
| private final List | |
| private final Set | |
| private boolean | |
| private boolean | |
| private String | gluegenRuntimePackage
The package in which the generated glue code expects to find its run-time helper classes (Buffers, Platform, StructAccessor). |
| private final Map | |
| private final Set | |
| private final Set | |
| private String | |
| private final Map | |
| private String | |
| private final List | imports
List of imports to emit at the head of the output files. |
| private final Map | |
| private String | javaOutputDir
Root directory for the hierarchy of generated java classes. |
| private final Map | |
| private final Map | |
| private final Map | |
| private final Map | |
| protected final Logging. | |
| private static boolean | |
| private static boolean | |
| private final Set | |
| private final Set | |
| private final Map | |
| private String | nativeOutputDir
Directory into which generated native JNI code will be written. |
| private boolean | nativeOutputUsesJavaHierarchy
If true, then each native *.c and *.h file will be generated in the directory nativeOutputDir/packageAsPath(packageName). |
| private int | |
| public static String | |
| private String | outputRootDir
Top output root directory for all generated files. |
| private String | |
| private final Map | |
| private boolean | relaxedEqualSemanticsTest
If true, |
| private final Map | |
| private final Map | |
| private final Set | |
| private final Map | |
| private final Map | |
| private String | runtimeExceptionType
The kind of exception raised by the generated code if run-time checks fail. |
| private final Map | |
| private final Map | |
| private boolean | tagNativeBinding
If true, then the comment of a native method binding will include a @native tag to allow taglets to augment the javadoc with additional information regarding the mapped C function. |
| private final Map | |
| private final Map | |
| private final Map | |
| private final Set | |
| private final Set | |
| private String | |
| private final Set | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JavaEmitter. | accessControl(final String name)
Returns the access control for the given method-name or fully qualified class-name. |
| protected void | |
| protected void | |
| public void | addDelegateImplementation(final String origName, final String renamedImpl)
Programmatically adds a delegate implementation directive for the given symbol. |
| protected void | |
| public void | addJavaSymbolRename(final String origName, final String newName)
Programmatically adds a rename directive for the given symbol. |
| protected void | |
| public TypeInfo | |
| protected void | |
| public void | |
| public void | |
| public boolean | |
| public TypeInfo | canonicalNameOpaque(final String canonicalName)
If the given |
| public static String | canonicalStructFieldSymbol(final String structName, final String fieldName)
Returns the canonical configuration name for a struct field name, i.e. 'struct-name'.'field-name' |
| public String | |
| private TypeInfo | |
| public List | customCCode()
Returns, as a List of Strings, the custom C code to be emitted along with the glue code for the main class. |
| public List | customJavaCodeForClass(final 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(final String cmd, final StringTokenizer tok, final File file, final String filename, final int lineNo)
|
| protected void | |
| protected void | |
| public JavaEmitter. | emissionStyle()
Returns the code emission style (constants in JavaEmitter) parsed from the configuration file. |
| public boolean | |
| public boolean | |
| public List | extendedInterfaces(final String interfaceName)
Returns a List of Strings indicating the interfaces the passed interface should declare it extends. |
| public String | extendedParentClass(final String className)
Returns a List of Strings indicating the interfaces the passed class should declare it implements. |
| public List | forcedStructs()
Returns, as a List of Strings, the structs for which glue code emission should be forced. |
| public boolean | forceStaticInitCode(final String clazzName)
Returns true if the static initialization java code implementing static jobject JVMUtil_NewDirectByteBufferCopy(JNIEnv *env, void * source_address, jlong capacity); |
| public Set | Returns: set of aliased-names ornull.the aliased symbol to retrieve the aliases symbol)Return a set of aliased-name for comment in docs. |
| protected static ASTLocusTag | |
| public String | getDelegatedImplementation(final String functionName)
Variant of |
| public String | getDelegatedImplementation(final AliasedSymbol symbol)
Returns the |
| public String | getJavaSymbolRename(final String origName)
Returns a replacement name for this function or definition which should be used as the Java name for the bound method or constant. |
| public JavaType | getOpaqueReturnType(final String functionName)
Variant of |
| public JavaType | getOpaqueReturnType(final AliasedSymbol symbol)
Returns the opaque |
| public Set | getRenamedJavaSymbols(final String aliasedName)
Returns a set of replaced names to the given |
| public String | gluegenRuntimePackage()
Returns the package in which the generated glue code expects to find its run-time helper classes (Buffers, Platform, StructAccessor). |
| public String | |
| public List | implementedInterfaces(final String className)
Returns a List of Strings indicating the interfaces the passed class should declare it implements. |
| public String | |
| public List | |
| public boolean | |
| public boolean | isUnimplemented(final AliasedSymbol 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. |
| public List | javadocForClass(final 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. |
| public List | |
| public List | javaEpilogueForMethod(final MethodBinding binding, final boolean forImplementingMethodCall, final boolean eraseBufferAndArrayTypes)
Returns a list of Strings which should be emitted as an epilogue to the body for the Java-side glue code for the given method. |
| public String | |
| public List | javaPrologueForMethod(final MethodBinding binding, final boolean forImplementingMethodCall, final boolean eraseBufferAndArrayTypes)
Returns a list of Strings which should be emitted as a prologue to the body for the Java-side glue code for the given method. |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | manuallyImplement(final String functionName)
Variant of |
| public boolean | manuallyImplement(final AliasedSymbol symbol)
Returns true if the glue code for the given aliased function will be manually implemented by the end user. |
| public boolean | manualStaticInitCall(final String clazzName)
Returns true if the static initialization java code calling |
| public String | |
| public boolean | nativeOutputUsesJavaHierarchy()
Returns whether the native code directory structure mirrors the Java hierarchy. |
| private static int | |
| private static int | |
| public static <K, V> V | |
| public static <K> boolean | |
| private static boolean | |
| public String | packageForStruct(final String structName)
Returns the package into which to place the glue code for accessing the specified struct. |
| public String | |
| protected static TypeInfo | |
| private TypeInfo | |
| public final void | |
| protected final void | |
| protected void | |
| protected void | readArgumentIsString(final StringTokenizer tok, final String filename, final int lineNo)
When const char* arguments in the C function prototypes are encountered,
the emitter will normally convert them to |
| protected Boolean | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| protected void | readExtendedIntfImplSymbols(final StringTokenizer tok, final String filename, final int lineNo, final boolean forInterface, final boolean forImplementation, final boolean onlyList)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | readJavaPrologueOrEpilogue(final StringTokenizer tok, final String filename, final int lineNo, final boolean prologue)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | readRangeCheck(final StringTokenizer tok, final String filename, final int lineNo, final boolean inBytes)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected String | |
| protected void | |
| protected void | |
| protected void | readTemporaryCVariableAssignment(final StringTokenizer tok, final String filename, final int lineNo)
|
| protected void | readTemporaryCVariableDeclaration(final StringTokenizer tok, final String filename, final int lineNo)
|
| protected void | |
| protected void | |
| public boolean | relaxedEqualSemanticsTest()
Returns whether |
| public String | renameJavaType(final 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. |
| public String | returnedArrayLength(final String functionName)
Returns a MessageFormat string of the Java expression calculating the number of elements in the returned array from the specified function name. |
| public boolean | returnsString(final String functionName)
Indicates whether the given function (which returns a
|
| public boolean | returnsString(final AliasedSymbol symbol)
Indicates whether the given function (which returns a
|
| public String | returnStructMachineDataInfoIndex(final String structName)
Returns a MessageFormat string of the Java code defining |
| public String | returnValueCapacity(final 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. |
| public String | returnValueLength(final String symbol)
Returns a MessageFormat string of the C expression calculating the length of the array being returned from a native method. |
| public String | runtimeExceptionType()
Returns the kind of exception to raise if run-time checks fail in the generated code. |
| public void | |
| public boolean | shouldIgnoreInImpl(final AliasedSymbol
the symbolic aliased name to check for exclusion symbol)Returns true if this aliased symbol should be ignored during glue code generation of implementation only. |
| protected final boolean | |
| public final boolean | shouldIgnoreInInterface(final String symbol)
Variant of |
| public boolean | shouldIgnoreInInterface(final AliasedSymbol
the symbolic aliased name to check for exclusion symbol)Returns true if this aliased symbol should be ignored during glue code generation of interfaces and implementation. |
| protected final boolean | |
| protected static boolean | |
| public List | stringArguments(final String functionName)
Returns a list of |
| protected Class | |
| public boolean | |
| public boolean | tagNativeBinding()
Returns whether the comment of a native method binding should include a @native tag. |
| public List | temporaryCVariableAssignments(final String functionName)
Returns a List of Strings of expressions containing assignments to temporary C variables in the glue code for the specified function. |
| public List | temporaryCVariableDeclarations(final String functionName)
Returns a List of Strings of expressions declaring temporary C variables in the glue code for the specified function. |
| public TypeInfo | |
| public String | unsupportedExceptionType()
Returns the kind of exception to raise if run-time checks fail in the generated code. |
| public boolean | useNIODirectOnly(final String functionName)
Returns true if the given function should only create a java.nio
variant, and no array variants, for |
| public boolean | useNIOOnly(final String functionName)
Returns true if the given function should only create a java.nio
variant, and no array variants, for |