This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| pack-priv static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | checkAll
Switch: check all nested classes of top level class |
| private Context | |
| private final JavaFileManager | fileManager
Access to files. |
| private final HashMap | filesWritten
Mapping from output file name to class name, for all classes we've written. |
| private static final boolean | |
| protected static final Context. | |
| private final Log | log
The log to use for verbose output. |
| public boolean | multiModuleMode
If true, class files will be written in module-specific subdirectories of the NATIVE_HEADER_OUTPUT location. |
| pack-priv Symtab | |
| pack-priv Types | |
| private boolean | verbose
Switch: verbose output. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv String | |
| protected void | |
| protected void | |
| protected void | |
| private static boolean | |
| protected void | |
| public static JNIWriter | |
| private static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| private static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| protected final String | |
| private void | |
| public boolean | |
| private boolean | |
| pack-priv static void | |
| public FileObject | write(Symbol.
The class from which a class file is generated. cEmit a class file for a given class. |
| public void | |
| protected void | |
| protected void |
| checkAll | back to summary |
|---|---|
| private boolean checkAll Switch: check all nested classes of top level class | |
| context | back to summary |
|---|---|
| private Context context | |
| fileManager | back to summary |
|---|---|
| private final JavaFileManager fileManager Access to files. | |
| filesWritten | back to summary |
|---|---|
| private final HashMap<String, String> filesWritten Mapping from output file name to class name, for all classes we've written. This is used to detect when two classes generate the same output file. | |
| isWindows | back to summary |
|---|---|
| private static final boolean isWindows | |
| jniWriterKey | back to summary |
|---|---|
| protected static final Context. | |
| log | back to summary |
|---|---|
| private final Log log The log to use for verbose output. | |
| multiModuleMode | back to summary |
|---|---|
| public boolean multiModuleMode If true, class files will be written in module-specific subdirectories of the NATIVE_HEADER_OUTPUT location. | |
| syms | back to summary |
|---|---|
| pack-priv Symtab syms | |
| types | back to summary |
|---|---|
| pack-priv Types types | |
| verbose | back to summary |
|---|---|
| private boolean verbose Switch: verbose output. | |
| JNIWriter | back to summary |
|---|---|
| private JNIWriter(Context context) Construct a class writer, given an options table. | |
| cppGuardBegin | back to summary |
|---|---|
| protected void cppGuardBegin(PrintWriter out) | |
| cppGuardEnd | back to summary |
|---|---|
| protected void cppGuardEnd(PrintWriter out) | |
| encode | back to summary |
|---|---|
| pack-priv static String encode(CharSequence name, JNIWriter. | |
| encodeChar | back to summary |
|---|---|
| pack-priv static String encodeChar(char ch) | |
| encodeMethod | back to summary |
|---|---|
| pack-priv String encodeMethod(Symbol msym, Symbol. | |
| fileTop | back to summary |
|---|---|
| protected void fileTop(PrintWriter out) | |
| guardBegin | back to summary |
|---|---|
| protected void guardBegin(PrintWriter out, String cname) | |
| guardEnd | back to summary |
|---|---|
| protected void guardEnd(PrintWriter out) | |
| hasFlag | back to summary |
|---|---|
| private static boolean hasFlag(Symbol m, int flag) | |
| includes | back to summary |
|---|---|
| protected void includes(PrintWriter out) | |
| instance | back to summary |
|---|---|
| public static JNIWriter instance(Context context) Get the ClassWriter instance for this context. | |
| isalnum | back to summary |
|---|---|
| private static boolean isalnum(char ch) | |
| isFinal | back to summary |
|---|---|
| pack-priv static boolean isFinal(Symbol s) | |
| isNative | back to summary |
|---|---|
| pack-priv static boolean isNative(Symbol s) | |
| isprint | back to summary |
|---|---|
| private static boolean isprint(char ch) | |
| isStatic | back to summary |
|---|---|
| pack-priv static boolean isStatic(Symbol s) | |
| isSynthetic | back to summary |
|---|---|
| pack-priv static boolean isSynthetic(Symbol s) | |
| jniType | back to summary |
|---|---|
| protected final String jniType(Type t) | |
| lazyInit | back to summary |
|---|---|
| private void lazyInit() | |
| needsHeader | back to summary |
|---|---|
| public boolean needsHeader(Symbol. | |
| needsHeader | back to summary |
|---|---|
| private boolean needsHeader(Symbol. | |
| printStaticDefines | back to summary |
|---|---|
| pack-priv static void printStaticDefines(PrintWriter out, Pair<Symbol. | |
| write | back to summary |
|---|---|
| public FileObject write(Symbol. Emit a class file for a given class.
| |
| write | back to summary |
|---|---|
| public void write(PrintWriter out, Symbol. | |
| writeMethods | back to summary |
|---|---|
| protected void writeMethods(PrintWriter out, Symbol. | |
| writeStatics | back to summary |
|---|---|
| protected void writeStatics(PrintWriter out, Symbol. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final JNIWriter. | |
| public static final JNIWriter. | |
| public static final JNIWriter. | |
| public static final JNIWriter. | |
| public static final JNIWriter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JNIWriter. | |
| public static JNIWriter. |
| CLASS | back to summary |
|---|---|
| public static final JNIWriter. | |
| FIELD | back to summary |
|---|---|
| public static final JNIWriter. | |
| FIELDSTUB | back to summary |
|---|---|
| public static final JNIWriter. | |
| JNI | back to summary |
|---|---|
| public static final JNIWriter. | |
| SIGNATURE | back to summary |
|---|---|
| public static final JNIWriter. | |
| EncoderType | back to summary |
|---|---|
| private EncoderType() | |
| valueOf | back to summary |
|---|---|
| public static JNIWriter. | |
| values | back to summary |
|---|---|
| public static JNIWriter. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final R |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected R | |
| public R | visitArrayType(Type.
Implements com.
|
| public R | visitCapturedType(Type.
Implements com.
|
| public R | visitClassType(Type.
Implements com.
|
| public R | visitErrorType(Type.
Implements com.
|
| public R | |
| public R | visitMethodType(Type.
Implements com.
|
| public R | visitModuleType(Type.
Implements com.
|
| public R | visitPackageType(Type.
Implements com.
|
| public R | |
| public R | |
| public R | |
| public R | visitWildcardType(Type.
Implements com.
|
| DEFAULT_VALUE | back to summary |
|---|---|
| protected final R DEFAULT_VALUE | |
| SimpleTypeVisitor | back to summary |
|---|---|
| protected SimpleTypeVisitor() | |
| SimpleTypeVisitor | back to summary |
|---|---|
| protected SimpleTypeVisitor(R defaultValue) | |
| defaultAction | back to summary |
|---|---|
| protected R defaultAction(Type t, P p) | |
| visitArrayType | back to summary |
|---|---|
| public R visitArrayType(Type. Implements com.
| |
| visitCapturedType | back to summary |
|---|---|
| public R visitCapturedType(Type. Implements com.
| |
| visitClassType | back to summary |
|---|---|
| public R visitClassType(Type. Implements com.
| |
| visitErrorType | back to summary |
|---|---|
| public R visitErrorType(Type. Implements com.
| |
| visitForAll | back to summary |
|---|---|
| public R visitForAll(Type. Implements com.
| |
| visitMethodType | back to summary |
|---|---|
| public R visitMethodType(Type. Implements com.
| |
| visitModuleType | back to summary |
|---|---|
| public R visitModuleType(Type. Implements com.
| |
| visitPackageType | back to summary |
|---|---|
| public R visitPackageType(Type. Implements com.
| |
| visitType | back to summary |
|---|---|
| public R visitType(Type t, P p) Implements com.
| |
| visitTypeVar | back to summary |
|---|---|
| public R visitTypeVar(Type. Implements com.
| |
| visitUndetVar | back to summary |
|---|---|
| public R visitUndetVar(Type. Implements com.
| |
| visitWildcardType | back to summary |
|---|---|
| public R visitWildcardType(Type. Implements com.
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JavacElements | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| pack-priv Types |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv StringBuilder | |
| pack-priv StringBuilder | |
| pack-priv StringBuilder | |
| pack-priv StringBuilder |
| elems | back to summary |
|---|---|
| pack-priv JavacElements elems | |
| SIG_ARRAY | back to summary |
|---|---|
| private static final String SIG_ARRAY | |
| SIG_BOOLEAN | back to summary |
|---|---|
| private static final String SIG_BOOLEAN | |
| SIG_BYTE | back to summary |
|---|---|
| private static final String SIG_BYTE | |
| SIG_CHAR | back to summary |
|---|---|
| private static final String SIG_CHAR | |
| SIG_CLASS | back to summary |
|---|---|
| private static final String SIG_CLASS | |
| SIG_DOUBLE | back to summary |
|---|---|
| private static final String SIG_DOUBLE | |
| SIG_FLOAT | back to summary |
|---|---|
| private static final String SIG_FLOAT | |
| SIG_INT | back to summary |
|---|---|
| private static final String SIG_INT | |
| SIG_LONG | back to summary |
|---|---|
| private static final String SIG_LONG | |
| SIG_SHORT | back to summary |
|---|---|
| private static final String SIG_SHORT | |
| SIG_VOID | back to summary |
|---|---|
| private static final String SIG_VOID | |
| types | back to summary |
|---|---|
| pack-priv Types types | |
| TypeSignature | back to summary |
|---|---|
| public TypeSignature(Types types) | |
| getJvmSignature | back to summary |
|---|---|
| pack-priv StringBuilder getJvmSignature(Type type, boolean useFlatname) | |
| getParameterSignature | back to summary |
|---|---|
| pack-priv StringBuilder getParameterSignature(Type mType, boolean useFlatname) throws SignatureException | |
| getReturnSignature | back to summary |
|---|---|
| pack-priv StringBuilder getReturnSignature(Type mType) throws SignatureException | |
| getSignature | back to summary |
|---|---|
| pack-priv StringBuilder getSignature(Type mType) throws SignatureException | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private void | |
| public Type | |
| public Type | |
| public Type |
| useFlatname | back to summary |
|---|---|
| private final boolean useFlatname | |
| JvmTypeVisitor | back to summary |
|---|---|
| pack-priv JvmTypeVisitor(boolean useFlatname) | |
| getJvmPrimitiveSignature | back to summary |
|---|---|
| private String getJvmPrimitiveSignature(Type t) | |
| setDeclaredType | back to summary |
|---|---|
| private void setDeclaredType(Type t, StringBuilder s) | |
| visitArrayType | back to summary |
|---|---|
| public Type visitArrayType(Type. Overrides com. Implements com.
| |
| visitClassType | back to summary |
|---|---|
| public Type visitClassType(Type. Overrides com. Implements com.
| |
| visitType | back to summary |
|---|---|
| public Type visitType(Type t, StringBuilder s) Overrides com. Implements com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SignatureException | back to summary |
|---|---|
| pack-priv SignatureException(String reason) | |