| Modifier and Type | Class and Description |
|---|---|
| protected class | JavaMethodBindingEmitter.
Class that emits a generic comment for JavaMethodBindingEmitters; the comment includes the C signature of the native method that is being bound by the emitter java method. |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| public static final FunctionEmitter. | |
| protected final MethodBinding | |
| private static final String | |
| protected final CommentEmitter | |
| protected final CommentEmitter | |
| private boolean | |
| protected List | |
| private boolean | |
| public static final FunctionEmitter. | |
| private boolean | |
| private boolean | |
| private final boolean | |
| private boolean | |
| private final boolean | |
| public static final FunctionEmitter. | |
| public static final FunctionEmitter. | |
| protected List | |
| public static final FunctionEmitter. | |
| public static final FunctionEmitter. | |
| private String | |
| private boolean | |
| private final String | |
| public static final FunctionEmitter. | |
| protected final boolean | |
| private final String | |
| protected final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | JavaMethodBindingEmitter(final MethodBinding binding, final PrintWriter output, final String runtimeExceptionType, final String unsupportedExceptionType, final boolean emitBody, final boolean tagNativeBinding, final boolean eraseBufferAndArrayTypes, final boolean useNIOOnly, final boolean useNIODirectOnly, final boolean forDirectBufferImplementation, final boolean forIndirectBufferAndArrayImplementation, final boolean isUnimplemented, final boolean isInterface, final boolean isNativeMethod, final boolean isPrivateNativeMethod, final JavaConfiguration configuration)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String[] | |
| protected String | |
| protected static String | |
| protected String | |
| protected int | emitArguments(final PrintWriter writer)
Implements abstract com. |
| protected void | |
| protected void | |
| protected void | |
| protected int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | emitReturnType(final PrintWriter writer)
Implements abstract com. |
| protected void | |
| protected String | |
| protected String | |
| protected String | |
| public final MethodBinding | |
| protected String | |
| protected String | |
| public FunctionSymbol | |
| public String | |
| public String | |
| protected String | |
| public String | |
| protected String | |
| protected String | |
| protected String | |
| public String | getRuntimeExceptionType()
The type of exception (must subclass
|
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected String | |
| protected String | |
| public boolean | |
| public static String | |
| protected String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setReturnedArrayLengthExpression(final String expr)
If the underlying function returns an array (currently only arrays of compound types are supported) as opposed to a pointer to an object, this method should be called to provide a MessageFormat string containing an expression that computes the number of elements of the returned array. |
| protected void | |
| public boolean | signatureOnly()
Indicates whether this emitter will print only a signature, or whether it will emit Java code for the body of the method as well. |
| ABSTRACT | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| binding | back to summary |
|---|---|
| protected final MethodBinding binding | |
| COMPOUND_ARRAY_SUFFIX | back to summary |
|---|---|
| private static final String COMPOUND_ARRAY_SUFFIX | |
| defaultInterfaceCommentEmitter | back to summary |
|---|---|
| protected final CommentEmitter defaultInterfaceCommentEmitter | |
| defaultJavaCommentEmitter | back to summary |
|---|---|
| protected final CommentEmitter defaultJavaCommentEmitter | |
| emitBody | back to summary |
|---|---|
| private boolean emitBody | |
| epilogue | back to summary |
|---|---|
| protected List<String> epilogue | |
| eraseBufferAndArrayTypes | back to summary |
|---|---|
| private boolean eraseBufferAndArrayTypes | |
| FINAL | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| forDirectBufferImplementation | back to summary |
|---|---|
| private boolean forDirectBufferImplementation | |
| forIndirectBufferAndArrayImplementation | back to summary |
|---|---|
| private boolean forIndirectBufferAndArrayImplementation | |
| isNativeMethod | back to summary |
|---|---|
| private final boolean isNativeMethod | |
| isPrivateNativeMethod | back to summary |
|---|---|
| private boolean isPrivateNativeMethod | |
| isUnimplemented | back to summary |
|---|---|
| private final boolean isUnimplemented | |
| NATIVE | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| PRIVATE | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| prologue | back to summary |
|---|---|
| protected List<String> prologue | |
| PROTECTED | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| PUBLIC | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| returnedArrayLengthExpression | back to summary |
|---|---|
| private String returnedArrayLengthExpression | |
| returnedArrayLengthExpressionOnlyForComments | back to summary |
|---|---|
| private boolean returnedArrayLengthExpressionOnlyForComments | |
| runtimeExceptionType | back to summary |
|---|---|
| private final String runtimeExceptionType | |
| SYNCHRONIZED | back to summary |
|---|---|
| public static final FunctionEmitter. | |
| tagNativeBinding | back to summary |
|---|---|
| protected final boolean tagNativeBinding | |
| unsupportedExceptionType | back to summary |
|---|---|
| private final String unsupportedExceptionType | |
| useNIODirectOnly | back to summary |
|---|---|
| protected final boolean useNIODirectOnly | |
| useNIOOnly | back to summary |
|---|---|
| private final boolean useNIOOnly | |
| JavaMethodBindingEmitter | back to summary |
|---|---|
| public JavaMethodBindingEmitter(final MethodBinding binding, final PrintWriter output, final String runtimeExceptionType, final String unsupportedExceptionType, final boolean emitBody, final boolean tagNativeBinding, final boolean eraseBufferAndArrayTypes, final boolean useNIOOnly, final boolean useNIODirectOnly, final boolean forDirectBufferImplementation, final boolean forIndirectBufferAndArrayImplementation, final boolean isUnimplemented, final boolean isInterface, final boolean isNativeMethod, final boolean isPrivateNativeMethod, final JavaConfiguration configuration) | |
| JavaMethodBindingEmitter | back to summary |
|---|---|
| public JavaMethodBindingEmitter(final JavaMethodBindingEmitter arg) | |
| argumentNameArray | back to summary |
|---|---|
| protected String[] argumentNameArray() | |
| byteOffsetArgName | back to summary |
|---|---|
| protected String byteOffsetArgName(final int i) | |
| byteOffsetArgName | back to summary |
|---|---|
| protected static String byteOffsetArgName(final String s) | |
| byteOffsetArrayArgName | back to summary |
|---|---|
| protected String byteOffsetArrayArgName(final int i) | |
| emitArguments | back to summary |
|---|---|
| protected int emitArguments(final PrintWriter writer) Implements abstract com. Doc from com. Returns the number of arguments emitted.
| |
| emitArrayLengthAndNIOBufferChecks | back to summary |
|---|---|
| protected void emitArrayLengthAndNIOBufferChecks(final MethodBinding binding, final PrintWriter writer) | |
| emitBody | back to summary |
|---|---|
| protected void emitBody(final PrintWriter writer) Implements abstract com.
| |
| emitCall | back to summary |
|---|---|
| protected void emitCall(final MethodBinding binding, final PrintWriter writer) | |
| emitCallArguments | back to summary |
|---|---|
| protected int emitCallArguments(final MethodBinding binding, final PrintWriter writer) | |
| emitCallResultReturn | back to summary |
|---|---|
| protected void emitCallResultReturn(final MethodBinding binding, final PrintWriter writer) | |
| emitCompoundArrayCopies | back to summary |
|---|---|
| protected void emitCompoundArrayCopies(final MethodBinding binding, final PrintWriter writer) | |
| emitName | back to summary |
|---|---|
| protected void emitName(final PrintWriter writer) Implements abstract com.
| |
| emitPostCallCleanup | back to summary |
|---|---|
| protected void emitPostCallCleanup(final MethodBinding binding, final PrintWriter writer) | |
| emitPreCallSetup | back to summary |
|---|---|
| protected void emitPreCallSetup(final MethodBinding binding, final PrintWriter writer) | |
| emitPrologueOrEpilogue | back to summary |
|---|---|
| protected void emitPrologueOrEpilogue(final List<String> code, final PrintWriter writer) | |
| emitReturnType | back to summary |
|---|---|
| protected void emitReturnType(final PrintWriter writer) Implements abstract com.
| |
| emitReturnVariableSetupAndCall | back to summary |
|---|---|
| protected void emitReturnVariableSetupAndCall(final MethodBinding binding, final PrintWriter writer) | |
| erasedTypeString | back to summary |
|---|---|
| protected String erasedTypeString(final JavaType type, final boolean skipBuffers) | |
| getArgumentName | back to summary |
|---|---|
| protected String getArgumentName(final int i) | |
| getBaseIndentString | back to summary |
|---|---|
| protected String getBaseIndentString() Overrides com.
| |
| getBinding | back to summary |
|---|---|
| public final MethodBinding getBinding() | |
| getCommentEndString | back to summary |
|---|---|
| protected String getCommentEndString() Overrides com.
| |
| getCommentStartString | back to summary |
|---|---|
| protected String getCommentStartString() Overrides com.
| |
| getCSymbol | back to summary |
|---|---|
| public FunctionSymbol getCSymbol() Implements abstract com.
| |
| getImplName | back to summary |
|---|---|
| public String getImplName() Implements abstract com.
| |
| getInterfaceName | back to summary |
|---|---|
| public String getInterfaceName() Implements abstract com.
| |
| getNativeImplMethodName | back to summary |
|---|---|
| protected String getNativeImplMethodName() | |
| getNativeName | back to summary |
|---|---|
| public String getNativeName() Implements abstract com.
| |
| getReturnedArrayLengthComment | back to summary |
|---|---|
| protected String getReturnedArrayLengthComment() | |
| getReturnedArrayLengthExpression | back to summary |
|---|---|
| protected String getReturnedArrayLengthExpression() | |
| getReturnTypeString | back to summary |
|---|---|
| protected String getReturnTypeString(final boolean skipArray) | |
| getRuntimeExceptionType | back to summary |
|---|---|
| public String getRuntimeExceptionType() The type of exception (must subclass
| |
| getUnsupportedExceptionType | back to summary |
|---|---|
| public String getUnsupportedExceptionType() | |
| isForDirectBufferImplementation | back to summary |
|---|---|
| public boolean isForDirectBufferImplementation() | |
| isForIndirectBufferAndArrayImplementation | back to summary |
|---|---|
| public boolean isForIndirectBufferAndArrayImplementation() | |
| isNativeMethod | back to summary |
|---|---|
| public boolean isNativeMethod() | |
| isNIOArgName | back to summary |
|---|---|
| protected String isNIOArgName(final int i) | |
| isNIOArgName | back to summary |
|---|---|
| protected String isNIOArgName(final String s) | |
| isPrivateNativeMethod | back to summary |
|---|---|
| public boolean isPrivateNativeMethod() | |
| javaThisArgumentName | back to summary |
|---|---|
| public static String javaThisArgumentName() | |
| offsetArgName | back to summary |
|---|---|
| protected String offsetArgName(final int i) | |
| setEmitBody | back to summary |
|---|---|
| public void setEmitBody(final boolean emitBody) Accessor for subclasses. | |
| setEpilogue | back to summary |
|---|---|
| public void setEpilogue(final List<String> epilogue) Sets the manually-generated epilogue code for this emitter. | |
| setEraseBufferAndArrayTypes | back to summary |
|---|---|
| public void setEraseBufferAndArrayTypes(final boolean erase) Accessor for subclasses. | |
| setForDirectBufferImplementation | back to summary |
|---|---|
| public void setForDirectBufferImplementation(final boolean direct) Accessor for subclasses. | |
| setForIndirectBufferAndArrayImplementation | back to summary |
|---|---|
| public void setForIndirectBufferAndArrayImplementation(final boolean indirect) Accessor for subclasses. | |
| setPrivateNativeMethod | back to summary |
|---|---|
| public void setPrivateNativeMethod(final boolean v) Accessor for subclasses. | |
| setPrologue | back to summary |
|---|---|
| public void setPrologue(final List<String> prologue) Sets the manually-generated prologue code for this emitter. | |
| setReturnedArrayLengthExpression | back to summary |
|---|---|
| public void setReturnedArrayLengthExpression(final String expr) If the underlying function returns an array (currently only arrays of compound types are supported) as opposed to a pointer to an object, this method should be called to provide a MessageFormat string containing an expression that computes the number of elements of the returned array. The parameters to the MessageFormat expression are the names of the incoming Java arguments. | |
| setReturnedArrayLengthExpression | back to summary |
|---|---|
| protected void setReturnedArrayLengthExpression(final String expr, final boolean onlyForComments) | |
| signatureOnly | back to summary |
|---|---|
| public boolean signatureOnly() Indicates whether this emitter will print only a signature, or whether it will emit Java code for the body of the method as well. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | emit(final FunctionEmitter emitter, final PrintWriter writer)
Implements com. |
| protected void | |
| protected StringBuilder | |
| protected void | |
| protected void | |
| protected void |
| DefaultCommentEmitter | back to summary |
|---|---|
| protected DefaultCommentEmitter() | |
| emit | back to summary |
|---|---|
| public void emit(final FunctionEmitter emitter, final PrintWriter writer) Implements com. Doc from com. Emit the body of a comment for the specified function; do NOT emit the open (e.g., comment "/*") or close (e.g., "*\/") characters.
| |
| emitAliasedDocNamesComment | back to summary |
|---|---|
| protected void emitAliasedDocNamesComment(final AliasedSymbol sym, final PrintWriter writer) | |
| emitAliasedDocNamesComment | back to summary |
|---|---|
| protected StringBuilder emitAliasedDocNamesComment(final AliasedSymbol sym, final StringBuilder sb) | |
| emitBeginning | back to summary |
|---|---|
| protected void emitBeginning(final FunctionEmitter emitter, final PrintWriter writer) | |
| emitBindingCSignature | back to summary |
|---|---|
| protected void emitBindingCSignature(final MethodBinding binding, final PrintWriter writer) | |
| emitEnding | back to summary |
|---|---|
| protected void emitEnding(final FunctionEmitter emitter, final PrintWriter writer) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | emitBeginning(final FunctionEmitter emitter, final PrintWriter writer)
Overrides com. |
| InterfaceCommentEmitter | back to summary |
|---|---|
| protected InterfaceCommentEmitter() | |
| emitBeginning | back to summary |
|---|---|
| protected void emitBeginning(final FunctionEmitter emitter, final PrintWriter writer) Overrides com.
| |