com.apple.internal.jobjc.generator.utils.JavaLang.JLCall Java Examples
The following examples show how to use
com.apple.internal.jobjc.generator.utils.JavaLang.JLCall.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FunctionGenerator.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #2
Source File: FunctionGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #3
Source File: FunctionGenerator.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #4
Source File: FunctionGenerator.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #5
Source File: FunctionGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #6
Source File: FunctionGenerator.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #7
Source File: FunctionGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #8
Source File: FunctionGenerator.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #9
Source File: FunctionGenerator.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #10
Source File: FunctionGenerator.java From hottub with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #11
Source File: FunctionGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #12
Source File: FunctionGenerator.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private static String createFieldCache(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); JLField field = new JLField("private static", type.getCanonicalName(), identifier); // It's okay to make it static, because the getter isn't static, so the only way to access it is through an instance. JLMethod getter = new JLMethod("private final", type.getCanonicalName(), "get_" + identifier); JLCall createIt = new JLCall("new " + type.getCanonicalName()); createIt.args.add(firstArg(fxn)); createIt.args.add("\"" + fxn.name + "\""); createIt.args.add(fxn.returnValue.type.getJType().getCoderDescriptor().getCoderInstanceName()); for (final Arg arg : fxn.args) createIt.args.add(arg.type.getJType().getCoderDescriptor().getCoderInstanceName()); getter.body.add("return " + new JLTertiary(identifier + " != null", identifier, identifier + " = " + createIt) + ";"); return field.toString() + getter.toString(); }
Example #13
Source File: FunctionGenerator.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #14
Source File: FunctionGenerator.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #15
Source File: FunctionGenerator.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #16
Source File: FunctionGenerator.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #17
Source File: FunctionGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #18
Source File: FunctionGenerator.java From hottub with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #19
Source File: FunctionGenerator.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #20
Source File: FunctionGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #21
Source File: FunctionGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #22
Source File: FunctionGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #23
Source File: FunctionGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }
Example #24
Source File: FunctionGenerator.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private static String createLocalForward(final Class<? extends Invoke> type, final Function fxn) { final String identifier = makeInstanceName(fxn); return new JLField("final", type.getCanonicalName(), identifier, new JLCall("get_" + identifier)).toString(); }