📄 netrexxc.java
字号:
} /** * Tells the NetRexx compiler to store the class files in the same * directory as the source files. The alternative is the working directory * Valid true values are "on" or "true". Anything else sets the flag to * false. The default value is true. * @param sourcedir a <code>boolean</code> value. */ public void setSourcedir(boolean sourcedir) { this.sourcedir = sourcedir; } /** * Set the source dir to find the source Java files. * @param srcDirName the source directory. */ public void setSrcDir(File srcDirName) { srcDir = srcDirName; } /** * Tells the NetRexx compiler that method calls always need parentheses, * even if no arguments are needed, e.g. <code>aStringVar.getBytes</code> * vs. <code>aStringVar.getBytes()</code> Valid true values are "on" or * "true". Anything else sets the flag to false. The default value is * false. * @param strictargs a <code>boolean</code> value. */ public void setStrictargs(boolean strictargs) { this.strictargs = strictargs; } /** * Tells the NetRexx compile that assignments must match exactly on type. * @param strictassign a <code>boolean</code> value. */ public void setStrictassign(boolean strictassign) { this.strictassign = strictassign; } /** * Specifies whether the NetRexx compiler should be case sensitive or not. * @param strictcase a <code>boolean</code> value. */ public void setStrictcase(boolean strictcase) { this.strictcase = strictcase; } /** * Sets whether classes need to be imported explicitly using an <code>import</code> * statement. By default the NetRexx compiler will import certain packages * automatically Valid true values are "on" or "true". Anything else sets * the flag to false. The default value is false. * @param strictimport a <code>boolean</code> value. */ public void setStrictimport(boolean strictimport) { this.strictimport = strictimport; } /** * Sets whether local properties need to be qualified explicitly using * <code>this</code> Valid true values are "on" or "true". Anything else * sets the flag to false. The default value is false. * @param strictprops a <code>boolean</code> value. */ public void setStrictprops(boolean strictprops) { this.strictprops = strictprops; } /** * Whether the compiler should force catching of exceptions by explicitly * named types. * @param strictsignal a <code>boolean</code> value. */ public void setStrictsignal(boolean strictsignal) { this.strictsignal = strictsignal; } /** * Sets whether debug symbols should be generated into the class file * Valid true values are "on" or "true". Anything else sets the flag to * false. The default value is false. * @param symbols a <code>boolean</code> value. */ public void setSymbols(boolean symbols) { this.symbols = symbols; } /** * Asks the NetRexx compiler to print compilation times to the console * Valid true values are "on" or "true". Anything else sets the flag to * false. The default value is false. * @param time a <code>boolean</code> value. */ public void setTime(boolean time) { this.time = time; } /** * Turns on or off tracing and directs the resultant trace output Valid * values are: "trace", "trace1", "trace2" and "notrace". "trace" and * "trace2". * @param trace the value to set. */ public void setTrace(TraceAttr trace) { this.trace = trace.getValue(); } /** * Turns on or off tracing and directs the resultant trace output Valid * values are: "trace", "trace1", "trace2" and "notrace". "trace" and * "trace2". * @param trace the value to set. */ public void setTrace(String trace) { TraceAttr t = new TraceAttr(); t.setValue(trace); setTrace(t); } /** * Tells the NetRexx compiler that the source is in UTF8 Valid true values * are "on" or "true". Anything else sets the flag to false. The default * value is false. * @param utf8 a <code>boolean</code> value. */ public void setUtf8(boolean utf8) { this.utf8 = utf8; } /** * Whether lots of warnings and error messages should be generated * @param verbose the value to set - verbose<level> or noverbose. */ public void setVerbose(VerboseAttr verbose) { this.verbose = verbose.getValue(); } /** * Whether lots of warnings and error messages should be generated * @param verbose the value to set - verbose<level> or noverbose. */ public void setVerbose(String verbose) { VerboseAttr v = new VerboseAttr(); v.setValue(verbose); setVerbose(v); } /** * Whether the task should suppress the "Method argument is not used" in * strictargs-Mode, which can not be suppressed by the compiler itself. * The warning is logged as verbose message, though. * @param suppressMethodArgumentNotUsed a <code>boolean</code> value. */ public void setSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed) { this.suppressMethodArgumentNotUsed = suppressMethodArgumentNotUsed; } /** * Whether the task should suppress the "Private property is defined but * not used" in strictargs-Mode, which can be quite annoying while * developing. The warning is logged as verbose message, though. * @param suppressPrivatePropertyNotUsed a <code>boolean</code> value. */ public void setSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed) { this.suppressPrivatePropertyNotUsed = suppressPrivatePropertyNotUsed; } /** * Whether the task should suppress the "Variable is set but not used" in * strictargs-Mode. Be careful with this one! The warning is logged as * verbose message, though. * @param suppressVariableNotUsed a <code>boolean</code> value. */ public void setSuppressVariableNotUsed(boolean suppressVariableNotUsed) { this.suppressVariableNotUsed = suppressVariableNotUsed; } /** * Whether the task should suppress the "FooException is in SIGNALS list * but is not signalled within the method", which is sometimes rather * useless. The warning is logged as verbose message, though. * @param suppressExceptionNotSignalled a <code>boolean</code> value. */ public void setSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled) { this.suppressExceptionNotSignalled = suppressExceptionNotSignalled; } /** * Tells whether we should filter out any deprecation-messages * of the compiler out. * @param suppressDeprecation a <code>boolean</code> value. */ public void setSuppressDeprecation(boolean suppressDeprecation) { this.suppressDeprecation = suppressDeprecation; } /** * init-Method sets defaults from Properties. That way, when ant is called * with arguments like -Dant.netrexxc.verbose=verbose5 one can easily take * control of all netrexxc-tasks. */ public void init() { String p; if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) { this.binary = Project.toBoolean(p); } // classpath makes no sense if ((p = getProject().getProperty("ant.netrexxc.comments")) != null) { this.comments = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) { this.compact = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.compile")) != null) { this.compile = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.console")) != null) { this.console = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.crossref")) != null) { this.crossref = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.decimal")) != null) { this.decimal = Project.toBoolean(p); // destDir } if ((p = getProject().getProperty("ant.netrexxc.diag")) != null) { this.diag = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.explicit")) != null) { this.explicit = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.format")) != null) { this.format = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.keep")) != null) { this.keep = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.logo")) != null) { this.logo = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.replace")) != null) { this.replace = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.savelog")) != null) { this.savelog = Project.toBoolean(p); // srcDir } if ((p = getProject().getProperty("ant.netrexxc.sourcedir")) != null) { this.sourcedir = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictargs")) != null) { this.strictargs = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictassign")) != null) { this.strictassign = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictcase")) != null) { this.strictcase = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictimport")) != null) { this.strictimport = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictprops")) != null) { this.strictprops = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.strictsignal")) != null) { this.strictsignal = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.symbols")) != null) { this.symbols = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.time")) != null) { this.time = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.trace")) != null) { setTrace(p); } if ((p = getProject().getProperty("ant.netrexxc.utf8")) != null) { this.utf8 = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.verbose")) != null) { setVerbose(p); } if ((p = getProject().getProperty("ant.netrexxc.suppressMethodArgumentNotUsed")) != null) { this.suppressMethodArgumentNotUsed = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.suppressPrivatePropertyNotUsed")) != null) { this.suppressPrivatePropertyNotUsed = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.suppressVariableNotUsed")) != null) { this.suppressVariableNotUsed = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.suppressExceptionNotSignalled")) != null) { this.suppressExceptionNotSignalled = Project.toBoolean(p); } if ((p = getProject().getProperty("ant.netrexxc.suppressDeprecation")) != null) { this.suppressDeprecation = Project.toBoolean(p); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -