protected class Compiler.Phase extends Visitor
visit(Element_option)
sets the values of the
global visitor registers abbrev, name, etc.ERROR(String)
.Modifier and Type | Field and Description |
---|---|
protected @Opt String |
abbrev
The extracted short abbrev of the option under visit, if any.
|
protected Element_option |
currentOptionElement
The currently visited Element_option
|
protected @Opt String |
name
The extracted long name of the option under visit, if any.
|
String |
option_qualifier
The text fragment for construting field and method identifiers
for the option under visit.
|
validating
Modifier | Constructor and Description |
---|---|
protected |
Phase() |
Modifier and Type | Method and Description |
---|---|
protected String |
bothtags_formatted()
Return (for the formatted usage() output) both tags separated by "/" in one string,
or the only tag, at its correct position in this string format.
|
protected String |
bothtags()
Return (as utmost compact string) both tags separated by "/"
or the only tag, without formatting.
|
protected void |
ERROR(String text)
Send error to central message receiver
Compiler.msg after adding the
name of the current option as the context info of the error. |
protected String |
longestname()
Return the long name, if found, else the abbrev.
|
protected String |
longesttag()
Return the long name tag (wiht double minus lead in), if found, else the short tag.
|
protected String |
shortestname()
Return the abbrev, if found, else the long name.
|
protected String |
shortesttag()
Return the abbrev tag (with single minus lead in), if found, else the long tag.
|
void |
visit(Element_option element)
Set all local fields as representing this option, --- will be called
from derived classes for field initialization.
|
protected void |
WARNING(String text)
Send warning to central message receiver
Compiler.msg after adding the
name of the current option as the context info of the warning. |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
visit
protected Element_option currentOptionElement
@Opt protected @Opt String abbrev
public String option_qualifier
protected String longestname()
protected String shortestname()
protected String longesttag()
protected String shortesttag()
protected String bothtags_formatted()
protected String bothtags()
protected void ERROR(String text)
Compiler.msg
after adding the
name of the current option as the context info of the error.protected void WARNING(String text)
Compiler.msg
after adding the
name of the current option as the context info of the warning.
public void visit(Element_option element)
see also the complete user documentation .