public class NativesGenerator extends JNIGenerator
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
enterExitMacro |
Constructor and Description |
---|
NativesGenerator() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
generate_objc_msgSend_stret(JNIMethod method,
java.util.List<JNIParameter> params,
java.lang.String func) |
void |
generate(JNIClass clazz) |
void |
generate(JNIMethod method) |
void |
generate(java.util.List<JNIMethod> methods) |
(package private) void |
generateCallback(JNIMethod method,
java.lang.String function,
java.util.List<JNIParameter> params,
JNIType returnType) |
private void |
generateConstantsInitializer(JNIMethod method) |
void |
generateCopyright() |
(package private) void |
generateDynamicFunctionCall(JNIMethod method,
java.util.List<JNIParameter> params,
JNIType returnType,
JNIType returnType64,
boolean needsReturn) |
(package private) void |
generateEnterExitMacro(JNIMethod method,
java.lang.String function,
java.lang.String function64,
boolean enter) |
(package private) void |
generateFunctionBody(JNIMethod method,
java.lang.String function,
java.lang.String function64,
java.util.List<JNIParameter> params,
JNIType returnType,
JNIType returnType64) |
(package private) void |
generateFunctionCall(JNIMethod method,
java.util.List<JNIParameter> params,
JNIType returnType,
JNIType returnType64,
boolean needsReturn) |
(package private) void |
generateFunctionCallLeftSide(JNIMethod method,
JNIType returnType,
JNIType returnType64,
boolean needsReturn) |
(package private) void |
generateFunctionCallRightSide(JNIMethod method,
java.util.List<JNIParameter> params,
int paramStart) |
(package private) void |
generateFunctionPrototype(JNIMethod method,
java.lang.String function,
java.util.List<JNIParameter> params,
JNIType returnType,
JNIType returnType64,
boolean singleLine) |
(package private) boolean |
generateGetParameter(JNIMethod method,
JNIParameter param,
boolean critical,
int indent) |
(package private) boolean |
generateGetters(JNIMethod method,
java.util.List<JNIParameter> params) |
void |
generateIncludes() |
(package private) boolean |
generateLocalVars(JNIMethod method,
java.util.List<JNIParameter> params,
JNIType returnType,
JNIType returnType64) |
(package private) void |
generateMemmove(JNIMethod method,
java.lang.String function,
java.lang.String function64,
java.util.List<JNIParameter> params) |
(package private) void |
generateNativeMacro(JNIClass clazz) |
(package private) void |
generateReturn(JNIMethod method,
JNIType returnType,
boolean needsReturn) |
(package private) void |
generateSetParameter(JNIParameter param,
boolean critical) |
(package private) void |
generateSetters(JNIMethod method,
java.util.List<JNIParameter> params) |
private java.util.ArrayList<JNIField> |
getConstantFields(JNIClass clazz) |
(package private) static java.lang.String[] |
getNativeNameParts(JNIMethod method) |
(package private) boolean |
isCritical(JNIParameter param) |
(package private) boolean |
isStruct(ArgFlag[] flags) |
(package private) boolean |
isSystemClass(JNIType type) |
void |
setEnterExitMacro(boolean enterExitMacro) |
fixDelimiter, generate, generate, getCopyright, getCPP, getDelimiter, getFunctionName, getFunctionName, getOutput, getOutputName, getProgressMonitor, loadFile, output, outputln, outputln, setClasses, setCopyright, setOutput, setOutputName, setProgressMonitor, sortClasses, sortFields, sortMethods, toC
public void generateCopyright()
generateCopyright
in class JNIGenerator
public void generateIncludes()
generateIncludes
in class JNIGenerator
public void generate(JNIClass clazz)
generate
in class JNIGenerator
public void generate(java.util.List<JNIMethod> methods)
boolean isStruct(ArgFlag[] flags)
void generateCallback(JNIMethod method, java.lang.String function, java.util.List<JNIParameter> params, JNIType returnType)
private void generateConstantsInitializer(JNIMethod method)
public void generate(JNIMethod method)
public void setEnterExitMacro(boolean enterExitMacro)
void generateNativeMacro(JNIClass clazz)
boolean generateGetParameter(JNIMethod method, JNIParameter param, boolean critical, int indent)
void generateSetParameter(JNIParameter param, boolean critical)
void generateEnterExitMacro(JNIMethod method, java.lang.String function, java.lang.String function64, boolean enter)
boolean generateLocalVars(JNIMethod method, java.util.List<JNIParameter> params, JNIType returnType, JNIType returnType64)
boolean generateGetters(JNIMethod method, java.util.List<JNIParameter> params)
void generateSetters(JNIMethod method, java.util.List<JNIParameter> params)
void generateDynamicFunctionCall(JNIMethod method, java.util.List<JNIParameter> params, JNIType returnType, JNIType returnType64, boolean needsReturn)
void generateFunctionCallLeftSide(JNIMethod method, JNIType returnType, JNIType returnType64, boolean needsReturn)
void generateFunctionCallRightSide(JNIMethod method, java.util.List<JNIParameter> params, int paramStart)
static java.lang.String[] getNativeNameParts(JNIMethod method)
void generateFunctionCall(JNIMethod method, java.util.List<JNIParameter> params, JNIType returnType, JNIType returnType64, boolean needsReturn)
void generate_objc_msgSend_stret(JNIMethod method, java.util.List<JNIParameter> params, java.lang.String func)
void generateMemmove(JNIMethod method, java.lang.String function, java.lang.String function64, java.util.List<JNIParameter> params)
void generateFunctionBody(JNIMethod method, java.lang.String function, java.lang.String function64, java.util.List<JNIParameter> params, JNIType returnType, JNIType returnType64)
void generateFunctionPrototype(JNIMethod method, java.lang.String function, java.util.List<JNIParameter> params, JNIType returnType, JNIType returnType64, boolean singleLine)
boolean isCritical(JNIParameter param)
boolean isSystemClass(JNIType type)