Package eu.bandm.tools.option
Class Compiler.Phase
java.lang.Object
eu.bandm.tools.tdom.runtime.BaseVisitor
eu.bandm.tools.option.absy.Visitor
eu.bandm.tools.option.Compiler.Phase
- All Implemented Interfaces:
PCDataVisitor
- Direct Known Subclasses:
Compiler.Phase_gui
,Compiler.Phase_parser
,Compiler.Phase_usage
,Compiler.Phase1
- Enclosing class:
- Compiler
Base class for compiler phases.
The only visit method visit(Element_option)
sets the values of the
global visitor registers abbrev, name, etc.
Consequently, here are all methods which need this info, including
ERROR(String,Object...)
.
-
Field Summary
Modifier and TypeFieldDescriptionThe extracted short abbrev of the option under visit, if any.protected Element_option
The currently visited Element_optionThe extracted long name of the option under visit, if any.The text fragment for constructing field and method identifiers for the option under visit.Fields inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
validating
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
bothtags()
Return (as utmost compact string) both tags separated by "/" or the only tag, without formatting.protected String
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 void
Send error to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the error.protected String
Return the long name, if found, else the abbrev.protected String
Return the long name tag (wiht double minus lead in), if found, else the short tag.protected String
Return the abbrev, if found, else the long name.protected String
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
Send warning to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the warning.protected void
Send warning to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the warning.Methods inherited from class eu.bandm.tools.option.absy.Visitor
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, visit, visit, visit, visit, visit, visit, visit
Methods inherited from class eu.bandm.tools.tdom.runtime.BaseVisitor
visit
-
Field Details
-
currentOptionElement
The currently visited Element_option -
name
The extracted long name of the option under visit, if any. -
abbrev
The extracted short abbrev of the option under visit, if any. -
option_qualifier
The text fragment for constructing field and method identifiers for the option under visit. (Currently"_"+longestName()
ise used.)
-
-
Constructor Details
-
Phase
protected Phase()
-
-
Method Details
-
longestname
Return the long name, if found, else the abbrev. -
shortestname
Return the abbrev, if found, else the long name. -
longesttag
Return the long name tag (wiht double minus lead in), if found, else the short tag. -
shortesttag
Return the abbrev tag (with single minus lead in), if found, else the long tag. -
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. -
bothtags
Return (as utmost compact string) both tags separated by "/" or the only tag, without formatting. Used in error messages. -
ERROR
Send error to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the error.This text manipulaton is NOT COMPATIBLE with translation, but assume that this programming tool is operatored only in the "lingua franca = English.
-
WARNING
Send warning to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the warning.This text manipulaton is NOT COMPATIBLE with translation, but assume that this programming tool is operatored only in the "lingua franca = English.
-
WARNING
Send warning to central message receiverCompiler.msgr
after adding the name of the current option as the context info of the warning.This text manipulaton is NOT COMPATIBLE with translation, but assume that this programming tool is operatored only in the "lingua franca = English.
-
visit
Set all local fields as representing this option, --- will be called from derived classes for field initialization. Does NOT descend.
-