Java Code Examples for com.sun.tools.javac.util.Options#get()
The following examples show how to use
com.sun.tools.javac.util.Options#get() .
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: Infer.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 6 votes |
protected Infer(Context context) { context.put(inferKey, this); rs = Resolve.instance(context); chk = Check.instance(context); syms = Symtab.instance(context); types = Types.instance(context); diags = JCDiagnostic.Factory.instance(context); log = Log.instance(context); inferenceException = new InferenceException(diags); Options options = Options.instance(context); allowGraphInference = Source.instance(context).allowGraphInference() && options.isUnset("useLegacyInference"); dependenciesFolder = options.get("debug.dumpInferenceGraphsTo"); pendingGraphs = List.nil(); emptyContext = new InferenceContext(this, List.nil()); }
Example 2
Source File: Analyzer.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 6 votes |
protected Analyzer(Context context) { context.put(analyzerKey, this); types = Types.instance(context); log = Log.instance(context); attr = Attr.instance(context); deferredAttr = DeferredAttr.instance(context); argumentAttr = ArgumentAttr.instance(context); make = TreeMaker.instance(context); copier = new AnalyzerCopier(); Options options = Options.instance(context); String findOpt = options.get("find"); //parse modes Source source = Source.instance(context); allowDiamondWithAnonymousClassCreation = source.allowDiamondWithAnonymousClassCreation(); analyzerModes = AnalyzerMode.getAnalyzerModes(findOpt, source); }
Example 3
Source File: Analyzer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected Analyzer(Context context) { context.put(analyzerKey, this); types = Types.instance(context); log = Log.instance(context); attr = Attr.instance(context); deferredAttr = DeferredAttr.instance(context); argumentAttr = ArgumentAttr.instance(context); make = TreeMaker.instance(context); names = Names.instance(context); Options options = Options.instance(context); String findOpt = options.get("find"); //parse modes Source source = Source.instance(context); allowDiamondWithAnonymousClassCreation = source.allowDiamondWithAnonymousClassCreation(); analyzerModes = AnalyzerMode.getAnalyzerModes(findOpt, source); }
Example 4
Source File: Locations.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 5
Source File: Locations.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 6
Source File: Locations.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 7
Source File: Locations.java From hottub with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 8
Source File: JavadocTaskImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void initContext() { //initialize compiler's default locale context.put(Locale.class, locale); if (!addModules.isEmpty()) { String names = String.join(",", addModules); Options opts = Options.instance(context); String prev = opts.get(Option.ADD_MODULES); opts.put(Option.ADD_MODULES, (prev == null) ? names : prev + "," + names); } }
Example 9
Source File: Modules.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected Modules(Context context) { context.put(Modules.class, this); log = Log.instance(context); names = Names.instance(context); syms = Symtab.instance(context); attr = Attr.instance(context); chk = Check.instance(context); deferredLintHandler = DeferredLintHandler.instance(context); typeEnvs = TypeEnvs.instance(context); moduleFinder = ModuleFinder.instance(context); types = Types.instance(context); fileManager = context.get(JavaFileManager.class); source = Source.instance(context); allowModules = source.allowModules(); Options options = Options.instance(context); allowAccessIntoSystem = options.isUnset(Option.RELEASE); lintOptions = options.isUnset(Option.XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option); multiModuleMode = fileManager.hasLocation(StandardLocation.MODULE_SOURCE_PATH); ClassWriter classWriter = ClassWriter.instance(context); classWriter.multiModuleMode = multiModuleMode; JNIWriter jniWriter = JNIWriter.instance(context); jniWriter.multiModuleMode = multiModuleMode; java_se = names.fromString("java.se"); java_ = names.fromString("java."); addExportsOpt = options.get(Option.ADD_EXPORTS); addReadsOpt = options.get(Option.ADD_READS); addModsOpt = options.get(Option.ADD_MODULES); limitModsOpt = options.get(Option.LIMIT_MODULES); moduleVersionOpt = options.get(Option.MODULE_VERSION); }
Example 10
Source File: Locations.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 11
Source File: Modules.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
protected Modules(Context context) { context.put(Modules.class, this); log = Log.instance(context); names = Names.instance(context); syms = Symtab.instance(context); attr = Attr.instance(context); chk = Check.instance(context); deferredLintHandler = DeferredLintHandler.instance(context); typeEnvs = TypeEnvs.instance(context); moduleFinder = ModuleFinder.instance(context); types = Types.instance(context); fileManager = context.get(JavaFileManager.class); source = Source.instance(context); allowModules = source.allowModules(); Options options = Options.instance(context); allowAccessIntoSystem = options.isUnset(Option.RELEASE); lintOptions = options.isUnset(Option.XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option); multiModuleMode = fileManager.hasLocation(StandardLocation.MODULE_SOURCE_PATH); ClassWriter classWriter = ClassWriter.instance(context); classWriter.multiModuleMode = multiModuleMode; JNIWriter jniWriter = JNIWriter.instance(context); jniWriter.multiModuleMode = multiModuleMode; java_se = names.fromString("java.se"); java_ = names.fromString("java."); addExportsOpt = options.get(Option.ADD_EXPORTS); addReadsOpt = options.get(Option.ADD_READS); addModsOpt = options.get(Option.ADD_MODULES); limitModsOpt = options.get(Option.LIMIT_MODULES); moduleVersionOpt = options.get(Option.MODULE_VERSION); }
Example 12
Source File: Locations.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 13
Source File: Locations.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
void update(Options optionTable) { for (Option o: options) { String v = optionTable.get(o); if (v != null) { handleOption(o, v); } } }
Example 14
Source File: RecognizedOptions.java From javaide with GNU General Public License v3.0 | 4 votes |
public static PkgInfo get(Options options) { String v = options.get(XPKGINFO); return (v == null ? PkgInfo.LEGACY : PkgInfo.valueOf(v.toUpperCase())); }
Example 15
Source File: RecognizedOptions.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
public static PkgInfo get(Options options) { String v = options.get(XPKGINFO); return (v == null ? PkgInfo.LEGACY : PkgInfo.valueOf(v.toUpperCase())); }
Example 16
Source File: Option.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
public static PkgInfo get(Options options) { String v = options.get(XPKGINFO); return (v == null ? PkgInfo.LEGACY : PkgInfo.valueOf(StringUtils.toUpperCase(v))); }
Example 17
Source File: Option.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 2 votes |
public static PkgInfo get(Options options) { String v = options.get(XPKGINFO); return (v == null ? PkgInfo.LEGACY : PkgInfo.valueOf(StringUtils.toUpperCase(v))); }