Package | Description |
---|---|
eu.bandm.tools.d2d2.base |
D2d allows to write valid XML documents directly in the creative flow of authoring,
with minimum typographic noise.
|
eu.bandm.tools.doctypes.xhtml |
Created by bandm/metatools/tdom on 2022-06-25T16:43:34
|
eu.bandm.tools.dtd |
Model for w3c XML DTDs, with preserved syntax.
|
eu.bandm.tools.dtm |
Canonical model of a W3C DTD with evaluated semantics; plus utility applications.
|
eu.bandm.tools.formatfrontends |
Generate format generating code (or formats dynamically) controlled by the
format description language.
|
eu.bandm.tools.graficUtils |
Utility functions for drawing and coordinate calculation.
|
eu.bandm.tools.installer |
Distribute applications made with metatools.
|
eu.bandm.tools.lablog.base |
Evaluation, statistics and renderings of bandm lab log format.
|
eu.bandm.tools.lablog.xml |
Meaning: Created from d2d definition module
lablog$expanded at
2022-07-01_07h58m33.
|
eu.bandm.tools.lljava.absy |
Abstract Syntax of LLJava, representing the byte code instructions, the objects which
contain byte code, and the attributes specific to byte code classes.
|
eu.bandm.tools.lljava.parser | |
eu.bandm.tools.message |
Messages and positions in documents,
cf user documentation.
|
eu.bandm.tools.muli |
Support *MU*lti *LI*ngual user interfaces by advanced translation look-up,
incremental deserialization, etc.
|
eu.bandm.tools.muli.tdom |
Meaning: Source format for multi lingual
support.
|
eu.bandm.tools.option.absy |
Meaning: Source format for the Option
compiler, for command line parsing, GUI input,
generation of documentation, etc.
|
eu.bandm.tools.option.runtime |
Runtime library for generated option processing code: building blocks for
parsing and GUI.
|
eu.bandm.tools.ramus.runtime2 | |
eu.bandm.tools.tdom |
Generates typed models of XML documents,
see
meta-tools TDOM user documentation.
|
eu.bandm.tools.tdom.runtime |
Contains base and auxiliary classes for code generated by tdom.
|
eu.bandm.tools.tpath.dom |
A DocumentClient implementation for W3C Dom.
|
eu.bandm.tools.tpath.runtime |
Infrastructure for evaluating tpath expressions.
|
eu.bandm.tools.tpath.tdomclient | |
eu.bandm.tools.tpath.type |
Type checking for tpath expressions.
|
eu.bandm.tools.umod |
Compiler for data models, from a concise mathematical oriented language into
Java.
|
eu.bandm.tools.util2 |
Ubiquitously needed auxiliary classes which need the
eu.bandm.tools.message package. |
eu.bandm.tools.util3 |
Ubiquitously needed auxiliary classes which need the
eu.bandm.tools.option package. |
eu.bandm.tools.xantlr |
Versatile export of ASTs recognized by antlr as SAX events,
cf user documentation.
|
eu.bandm.tools.xantlr.runtime |
Runtime classes for the xantlr
parser.
|
eu.bandm.tools.xantlrtdom |
Glueing code supporting different standard use cases of tdom, xantlr
and both.
|
eu.bandm.tools.xslt.base |
txsl = typed xslt 1.0 interpreter with "fragmented validation".
|
Modifier and Type | Method and Description |
---|---|
static void |
Reducer.addToModule(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Module host,
SourceItem item,
String kind)
Store a definition to the given module.
|
void |
TypeCheck.check(Module mod,
MessageReceiver<SimpleMessage> msg) |
void |
Udom2Sax.convert(MessageReceiver<SimpleMessage<Object>> msg,
ContentHandler sax,
ResultingStructure structure,
Map<String,String> namespaceContext)
Top-level entry point.
|
@Opt Module |
Dtd2Def.convert(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> p_msg,
DTD.Dtd input_dtd,
String name)
Convert one DTD.Dtd to a ddf module.
|
DTD.Dtd |
Def2Dtd.convert(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Module module,
XMLDocumentIdentifier newId,
boolean tdom_mode,
@Opt String tdom_doc_language)
Central working method for transformation to dtd.
|
Module |
UMod2Def.convert(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
UMod.Forest f) |
static void |
Tasks.ddf2doc3(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
ModuleRegistry moduleReg,
String modulename,
String language,
String outputname,
String gencomment,
NamespaceName2String stylesheetParams,
Iterable<String> additionalSources,
int lineWidth)
Generate the html doc for a given module, ie.
|
static void |
Tasks.ddf2dtd(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
ModuleRegistry moduleReg,
String modulename,
String docuLanguage,
String fileOutputName,
int lineWidth)
Convert a module to a dtd.
|
static void |
Tasks.ddf2xslt(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
ModuleRegistry moduleReg,
String modulename,
String targetModule,
@Opt String targetTopTag,
String outputname,
Text2Udom.ErrorStrategy errorStrategy,
String genString,
int lineWidth)
Extracts all xslt rules for the given module and target
into a d2d definition and exports this to a d2d source file.
|
static void |
Tasks.dtd2ddf(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> extmsg,
ModuleRegistry moduleReg,
String inputname,
String fileOutputName,
int lineWidth)
Convert a dtd to a module.
|
protected static void |
Tasks.e_error(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Exception ex,
String s,
Object... args)
Adapter to treat parse formatting of Strings to MuLiMessageReceiver,
and simulate it locally for normal MessageReceiver.
(This must be treated differently, because MuLiMessageReceiver FIRST translates BEFORE formatting !-) |
protected static void |
Tasks.e_error(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s) |
protected static void |
Tasks.e_log(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s) |
protected static void |
Tasks.e_log(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s,
Object... args) |
protected static void |
Tasks.e_logEnd(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s) |
protected static void |
Tasks.e_logStart(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s) |
protected void |
XsltSpecialized.errorcheck_xsltprepare(MessageCounter<SimpleMessage<XMLDocumentIdentifier>> cnt) |
protected void |
Text2Udom.errorcheck_xsltprepare(MessageCounter<SimpleMessage<XMLDocumentIdentifier>> cnt) |
protected static void |
Tasks.execXsltUsingXalan(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> e_msg,
MessageReceiver<SimpleMessage<Object>> msgNOLOC,
ResultingStructure res,
Templates templates,
NamespaceName2String e_stylesheetParams,
boolean errorsInSourceFound,
@Opt String stylesheetErrorFlag,
File resfile,
@Opt Map<String,String> inputNamespaces) |
protected static void |
Tasks.execXsltUsingXalan(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> e_msg,
MessageReceiver<SimpleMessage<Object>> msgNOLOC,
ResultingStructure res,
Templates templates,
NamespaceName2String e_stylesheetParams,
boolean errorsInSourceFound,
@Opt String stylesheetErrorFlag,
File resfile,
@Opt Map<String,String> inputNamespaces) |
static ModuleRegistry |
ModuleRegistry.makeInstance(@Opt String[] searchpath,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr,
int debug) |
static ModuleRegistry |
ModuleRegistry.makeInstance(@Opt String[] searchpath,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr,
int debug,
boolean useResolver3)
Wrapper which creates and initializes.
|
Module |
Reducer.reduce(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
eu.bandm.tools.d2d2.absy.Document_module input) |
protected void |
Text2Udom.report_missing_elements(boolean isOpen,
String tag,
boolean frameFound,
CheckedList<Expression> misslist,
List<SimpleMessage<String>> messlist,
Location<String> closeTagDefLoc)
this proc can be called from
Text2Udom.process_open_tag(String, boolean) or
Text2Udom.process_close_tag(String, boolean) .Basically, there are two classes of error recovery: framefound = false ==> the tag is NOT KNOWN, then discard all input up to the next tag and try again. |
void |
ModuleRegistry.setMsgReceiver(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
static String[] |
Main.splitAndCheckKey(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
String s)
Split one string according to the syntax
[modulePath] (":"[ElementTag])? . |
static <T extends TypedDocument,D extends TypedDTD> |
Tasks.string2tdom(String sourcetext,
ModuleRegistry modreg,
Class<T> documentClass,
D dtdInstance,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr,
Text2Udom.ErrorStrategy errorStrategy,
int debug)
Convert a d2d source text (GIVEN AS STRING) into a tdom model.
|
static <T extends TypedDocument,D extends TypedDTD> |
Tasks.text2tdom(File infile,
ModuleRegistry modreg,
Class<T> documentClass,
D dtdInstance,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr,
Text2Udom.ErrorStrategy errorStrategy,
int debug)
Convert a d2d input file into a tdom model.
|
static void |
Tasks.text2texts(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> e_msg,
ModuleRegistry e_moduleReg,
Text2Udom.ErrorStrategy errorStrategy,
File e_sourcefile,
@Opt String generationComment,
@Opt ContentHandler contentHandler,
Map<String,File> e_formats,
String stylesheetErrorFlag,
NamespaceName2String e_stylesheetParams)
Convert directly a d2d encoded input text file
into output files in different output formats, using xslt.
|
static <T extends TypedDocument,D extends TypedDTD> |
Tasks.udom2xslt2document(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgr,
ModuleRegistry modreg,
Udom input,
String xsltTargetModuleSelect,
String xsltTargetToptagSelect,
Class<T> documentClass,
D dtdInstance,
URIResolver uriResolver,
NamespaceName2String stylesheetparams,
boolean debug)
Convert a d2d untyped model (result of a d2d parsing process)
via the xslt rules coming with the d2d module definition directly into a tdom model.
|
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
Inliner.msg |
Modifier and Type | Method and Description |
---|---|
static void |
DTD.drainInitializationMessages(MessageReceiver<? super SimpleMessage> msg) |
Constructor and Description |
---|
Inliner(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
File baseFile) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
Statistics.msg |
Modifier and Type | Method and Description |
---|---|
protected void |
DTD.MATCH_ONLY_00.action(SimpleMessage e0) |
Modifier and Type | Method and Description |
---|---|
static DTD.Dtd |
TunedDTDParser.parse(Reader in,
XMLDocumentIdentifier id,
@Opt File base,
boolean errorOnExpand,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
Deprecated.
|
static DTD.Dtd |
DTD.parse(Reader in,
XMLDocumentIdentifier id,
File base,
boolean lateError,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
static DTD.Dtd |
TunedDTDParser.parse(Reader in,
XMLDocumentIdentifier id,
URL base,
boolean errorOnExpand,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
Main service access point for parsing a dtd into an internal model.
|
static DTD.Dtd |
TunedDTDParser.parselocal(String in,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
Parse a local (or temporary generated) dtd declaration.
|
void |
Statistics.update(DTD.Dtd dtd,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
void |
AttlistIndex.update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg,
DTD.Dtd dtd)
This method (or its variant) must
be called exactly once to initialize maps with a certain dtd.
|
void |
ElementIndex.update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg,
DTD.Dtd dtd)
Must be called exactly once to initialize maps with a certain dtd.
|
void |
AttlistIndex.update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg,
DTD.Dtd dtd,
Set<String> knownElementNames)
This method (or its variant) must
be called exactly once to initialize maps with a certain dtd.
|
Constructor and Description |
---|
TunedDTDParser(Reader in,
@Opt XMLDocumentIdentifier id,
@Opt File base,
boolean errorOnExpand,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
Deprecated.
|
TunedDTDParser(Reader in,
@Opt XMLDocumentIdentifier id,
@Opt URL base,
boolean errorOnExpand,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
Tool.msg |
protected MessageCounter<SimpleMessage<XMLDocumentIdentifier>> |
Tool.msg_c |
protected MessagePrinter<SimpleMessage<XMLDocumentIdentifier>> |
Tool.msg_p |
protected MessageStore<SimpleMessage<XMLDocumentIdentifier>> |
Tool.msg_s |
Modifier and Type | Method and Description |
---|---|
void |
AttributeChecks.sendErrorMessages_Undecl_Type_Fixed(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
The attributes recognized as erronuous in XML sense, can later
be healed when meant in a derived system, like xslt.
|
void |
DTD2DTM.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
Constructor and Description |
---|
HtmlRenderer(DTD.Dtd dtd,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Statistics statistics,
Reader text)
Only constructor, returns a use-once instance.
|
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
DynamicFormatter.msg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
GenericCompiler.rec
Needed ONLY because ".getReceiver()" is of type "? super M", which does not
wokr.
|
Modifier and Type | Method and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
GenericCompiler.getMsgReceiver() |
Modifier and Type | Method and Description |
---|---|
static String |
DynamicFormatter.getFormatHint(Class cls,
MessageReceiver<SimpleMessage> msg)
convenience method.
|
protected static eu.bandm.tools.formatfrontends.absy.Document_tdomRules |
Tdom2format.loadDocument(Reader str,
String filename,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
protected void |
GenericCompiler.setMsgReceiver(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> rec) |
static Format |
DynamicFormatter.toFormat(Object model,
MessageReceiver<? super SimpleMessage> msg)
convenience method.
|
static Format |
DynamicFormatter.toFormat(Object model,
String formathint,
MessageReceiver<? super SimpleMessage> msg)
convenience method.
|
Constructor and Description |
---|
DynamicFormatter(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
Only constructor.
|
GenericCompiler(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> rec) |
Tdom2format(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> rec) |
Modifier and Type | Method and Description |
---|---|
void |
MessageDialog.receive(SimpleMessage<D> m) |
Modifier and Type | Field and Description |
---|---|
protected SwingMessageField<SimpleMessage<String>> |
DocumentedDistribution.errorMsgField
Deprecated.
Text label showing always the last message sent to , iff it is an error.
|
protected SwingMessageField<SimpleMessage<String>> |
DocumentedDistribution2.errorMsgField
Text label showing always the last message sent to .
|
protected MessageStore<SimpleMessage<String>> |
DocumentedDistribution.messageStore
Deprecated.
|
protected MessageStore<SimpleMessage<String>> |
DocumentedDistribution2.messageStore
Must be global because one further consumers will later be added in case of
"GUI" use.
|
protected MessageTee<SimpleMessage<String>> |
DocumentedDistribution.msgtee
Deprecated.
|
protected MessageTee<SimpleMessage<String>> |
DocumentedDistribution2.msgtee
Must be global because two further consumers will later be added in case of
"GUI" use.
|
Modifier and Type | Method and Description |
---|---|
protected static FileContents |
Muffins.accessMuffin(URL cookieURL,
MessageReceiver<SimpleMessage> msg)
Internal function returning the access object
|
static String |
Muffins.retrieveMuffin(URL cookieURL,
String cookieEncoding,
MessageReceiver<SimpleMessage> msg)
Read the content of the cookie/muffin identified by the URL into a string.
|
static boolean |
Muffins.writeMuffin(URL url,
String data,
String cookieEncoding,
MessageReceiver<SimpleMessage> msg)
Write the string contents into the cookie/muffin identified by the URL.
|
Modifier and Type | Field and Description |
---|---|
protected Map<File,MessageStore<SimpleMessage<XMLDocumentIdentifier>>> |
Main.file2errors
Collects all d2d parsing errors for the processed files; value==null means
"file not found".
|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
Main.msg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
ToHtml.msg |
Modifier and Type | Method and Description |
---|---|
Element_html |
ToHtml.makeHtml(SortedMap<String,List<Element_issue>> issuesByPackage,
SortedMap<String,List<Element_docmat>> docmatsByPackage,
Map<Element,File> elements2file,
Map<File,MessageStore<SimpleMessage<XMLDocumentIdentifier>>> files2error)
Make the complete html rendering.
|
Modifier and Type | Method and Description |
---|---|
static void |
DTD.drainInitializationMessages(MessageReceiver<? super SimpleMessage> msg) |
Modifier and Type | Method and Description |
---|---|
void |
CodeSerializer.setMessageReceiver(MessageReceiver<? super SimpleMessage<SourceId>> msg) |
void |
ControlFlowAnalyzer.setMessageReceiver(MessageReceiver<? super SimpleMessage<SourceId>> msg) |
void |
ExceptionTableCollector.setMessageReceiver(MessageReceiver<? super SimpleMessage<SourceId>> msg) |
void |
TypeChecker.setMessageReceiver(MessageReceiver<? super SimpleMessage<SourceId>> msg) |
void |
ContextChecker.setMessageReceiver(MessageReceiver<? super SimpleMessage<SourceId>> msg) |
Modifier and Type | Method and Description |
---|---|
protected LLJava.ReferenceTypeExpr |
LLJavaParser.ensureReferenceType(MessageReceiver<? super SimpleMessage<SourceId>> msgs,
Location<SourceId> location,
LLJava.TypeExpr type) |
Modifier and Type | Class and Description |
---|---|
static class |
SimpleMessage.Ping<D>
Log message with not more informative content than "I am still alive".
|
Modifier and Type | Field and Description |
---|---|
Function<SimpleMessage<D>,SimpleMessage<E>> |
LocationMap.mapMessages
A public
Function object which applies the mapping of the
containing class to the location fields of SimpleMessage s. |
Function<SimpleMessage<D>,SimpleMessage<E>> |
LocationMap.mapMessages
A public
Function object which applies the mapping of the
containing class to the location fields of SimpleMessage s. |
protected MessageReceiver<SimpleMessage<D>> |
Outstream2Log.receiver |
Modifier and Type | Method and Description |
---|---|
static <D> SimpleMessage<D> |
SimpleMessage.error(Exception ex,
Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.error(Exception ex,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.error(Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.error(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.failure(Exception th)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.failure(Exception exception,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.failure(Locatable<D> loc,
Exception exception)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.failure(Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.failure(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.hint(Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.hint(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.log(Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.log(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.logEnd(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.logStart(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.makeMessage(Message.Kind k,
Exception e,
String t,
Locatable<D> l)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
SimpleMessage<D> |
SimpleMessage.mapKind(Function<Message.Kind,Message.Kind> f)
Apply a function which operates on the
Kind part to construct
a new message. |
<E> SimpleMessage<E> |
SimpleMessage.mapLocation(Function<Location<D>,Location<E>> f)
Apply a function which operates on the
Location part to construct
a new message. |
SimpleMessage<D> |
SimpleMessage.mapText(Function<String,String> f)
Apply a function which operates on the
text part to construct
a new message. |
static <D> SimpleMessage<D> |
SimpleMessage.warning(Locatable<D> loc,
String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
static <D> SimpleMessage<D> |
SimpleMessage.warning(String message)
Convenience factory Method:
Create a message of the indicated kind and with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
static <X> Function<SimpleMessage<X>,SimpleMessage<X>> |
SimpleMessage.liftMapKind(Function<Message.Kind,Message.Kind> f)
Lift a function which operates on the
Kind part to one which
operates on the whole Message. |
static <X> Function<SimpleMessage<X>,SimpleMessage<X>> |
SimpleMessage.liftMapKind(Function<Message.Kind,Message.Kind> f)
Lift a function which operates on the
Kind part to one which
operates on the whole Message. |
static <D,E> Function<SimpleMessage<D>,SimpleMessage<E>> |
SimpleMessage.liftMapLocation(Function<Location<D>,Location<E>> f)
Constructs a function which maps SimpleMessages (never null to never null),
when a function
which maps their
Location (maybe null to maybe null) is given. |
static <D,E> Function<SimpleMessage<D>,SimpleMessage<E>> |
SimpleMessage.liftMapLocation(Function<Location<D>,Location<E>> f)
Constructs a function which maps SimpleMessages (never null to never null),
when a function
which maps their
Location (maybe null to maybe null) is given. |
static <X> Function<SimpleMessage<X>,SimpleMessage<X>> |
SimpleMessage.liftMapText(Function<String,String> f)
Lift a function which operates on the
text part to one which
operates on the whole Message. |
static <X> Function<SimpleMessage<X>,SimpleMessage<X>> |
SimpleMessage.liftMapText(Function<String,String> f)
Lift a function which operates on the
text part to one which
operates on the whole Message. |
static <D,E> BiFunction<Function<Location<D>,Location<E>>,SimpleMessage<D>,SimpleMessage<E>> |
SimpleMessage.mapLocation()
A
BiFunction which delivers a clone of a SimpleMessage
and applies a mapping function on the Location part. |
static <D,E> BiFunction<Function<Location<D>,Location<E>>,SimpleMessage<D>,SimpleMessage<E>> |
SimpleMessage.mapLocation()
A
BiFunction which delivers a clone of a SimpleMessage
and applies a mapping function on the Location part. |
static <D> Function<SimpleMessage<D>,String> |
SimpleMessage.messageToString(Function<? super Location<D>,? extends String> formatLoc)
Reified function for converting a message to a string,
using a given transformation function for the
Location part. |
static <D> Function<SimpleMessage<D>,String> |
SimpleMessage.messageToString(Function<? super Location<D>,? extends String> formatLoc,
Function<? super Message.Kind,String> formatKind) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleMessage.Generator.propagate(SimpleMessage<D> message)
Send the
messege to the current target. |
void |
MessageLocationFilter.receive(SimpleMessage<D> m) |
void |
LocationMap.Translator.receive(SimpleMessage<D> msg) |
void |
OffsetIndicationPrinter.receive(SimpleMessage<String> message)
Print the message to the output stream.
First the id is printed (= the document contents), then a newline, an indentation, a caret symbol, the message kind and the message text. |
Modifier and Type | Method and Description |
---|---|
static <D> Thread |
SimpleMessage.monitor(Thread thread,
MessageReceiver<? super SimpleMessage<D>> receiver)
Installs a handler on the given thread that reports uncaught exceptions as
failure messages.
|
static <D> Thread |
SimpleMessage.monitor(Thread thread,
MessageReceiver<? super SimpleMessage<D>> receiver,
PrintStream ps)
Installs a handler on the given thread that reports uncaught exceptions as
failure messages.
|
Constructor and Description |
---|
SimpleMessage(SimpleMessage<D> msg)
return a clone.
|
Constructor and Description |
---|
Generator(MessageReceiver<? super SimpleMessage<D>> rec) |
MessageLocationFilter(MessageReceiver<SimpleMessage<D>> d,
boolean emptyList,
boolean locationLess) |
Outstream2Log(MessageReceiver<SimpleMessage<D>> drain) |
Outstream2Log(MessageReceiver<SimpleMessage<D>> drain,
Location<D> loc) |
Translator(MessageReceiver<SimpleMessage<E>> drain) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
CatalogByString.msg |
Modifier and Type | Method and Description |
---|---|
void |
MuLiMessageReceiver.receive(SimpleMessage<D> msg) |
void |
MuLiMessageStore.receive(SimpleMessage<D> message,
Object... args)
adds the received message to the internal store and notifies all GUI objects.
|
Modifier and Type | Method and Description |
---|---|
void |
CatalogByString.load(File f,
boolean eliminateNewlines,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
Fill the data encoded in the text file into the catalog object.
|
void |
CatalogByString.load(Reader s,
String sourceId,
boolean eliminateNewlines,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
Fill the data encoded in the current text of the reader into the catalog object.
|
static <X> MuLiMessageReceiver<X> |
MuLiMessageReceiver.noTranslate(MessageReceiver<SimpleMessage<X>> rec)
Wrap a MessageReceiver into a MuLiMessageReceiver with NOT TRANSLATION at all.
|
Constructor and Description |
---|
MuLiMessageReceiver(MessageReceiver<SimpleMessage<D>> receiver,
CatalogByString cat,
List<String> prefs) |
MuLiMessageReceiver(MessageReceiver<SimpleMessage<D>> receiver,
CatalogByString cat,
String... prefs) |
Modifier and Type | Method and Description |
---|---|
static void |
DTD.drainInitializationMessages(MessageReceiver<? super SimpleMessage> msg) |
Modifier and Type | Method and Description |
---|---|
static void |
DTD.drainInitializationMessages(MessageReceiver<? super SimpleMessage> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage> |
ResourceChooser.msg |
Modifier and Type | Method and Description |
---|---|
void |
Model.parse(String[] args,
MessageReceiver<SimpleMessage<?>> mr)
The main entry for setting all values according to some
command line input, as reaching
public void main(String[])
from some exec system call. |
Constructor and Description |
---|
ResourceChooser(String name,
MessageReceiver<SimpleMessage> msg)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
abstract Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> |
Parser.apply(Parser.Input<D,T> in,
Success<?,SimpleMessage<D>,Parser.Input<D,T>> recyclable)
Applies this continuation, possibly using a recyclable leaf
node.
|
static <D,T> Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> |
Parser.diagnoseUnexpectedToken(Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> body,
Location<D> location,
@Opt String description) |
<R> Action<State,SimpleMessage<D>,State> |
Reducer.Context.eval(eu.bandm.tools.ramus.runtime2.Reducer.BoundConstructor<D,R> cons,
Success<?,SimpleMessage<D>,State> recyclable) |
Update<SimpleMessage<D>> |
Parser.Output.getEffect()
Returns the effect on semantic parsing state of this output.
|
MessageReceiver<SimpleMessage<D>> |
Reducer.Context.getMessages() |
List<Map.Entry<A,List<SimpleMessage<D>>>> |
Expression.Result.getResults() |
Action<State,SimpleMessage<D>,State> |
Parser.process(Parser.Input<D,T> in,
Action.Visitor<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> errorVisitor) |
Modifier and Type | Method and Description |
---|---|
Parser<D,T> |
Parser.diagnose(SimpleMessage<D>... msgs)
Add diagnostic messages to the behavior of this parser.
|
void |
Reducer.Context.receive(SimpleMessage<D> message) |
Modifier and Type | Method and Description |
---|---|
Parser<D,T> |
Parser.andThenCombining(Parser<D,T> other,
Action.BiContinuation<Data,Data,Data,SimpleMessage<D>,State> combiner)
Follows the behavior of this parser sequentially with another, combining
the result values.
|
abstract Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> |
Parser.apply(Parser.Input<D,T> in,
Success<?,SimpleMessage<D>,Parser.Input<D,T>> recyclable)
Applies this continuation, possibly using a recyclable leaf
node.
|
static <D,T> Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> |
Parser.diagnoseUnexpectedToken(Action<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> body,
Location<D> location,
@Opt String description) |
<R> Action<State,SimpleMessage<D>,State> |
Reducer.Context.eval(eu.bandm.tools.ramus.runtime2.Reducer.BoundConstructor<D,R> cons,
Success<?,SimpleMessage<D>,State> recyclable) |
Optional<A> |
Expression.Result.getFirstResult(Consumer<? super SimpleMessage<D>> msg) |
Expression<D,T,A> |
Expression.guard(Predicate<? super A> condition,
Function<? super A,List<SimpleMessage<D>>> error) |
Parser<D,T> |
Parser.guard(Predicate<State> condition,
Function<State,List<SimpleMessage<D>>> error) |
Parser.Output<D,T> |
Parser.Output.mapEffect(Function<? super Update<SimpleMessage<D>>,? extends Update<SimpleMessage<D>>> fun) |
Parser.Output<D,T> |
Parser.Output.mapEffect(Function<? super Update<SimpleMessage<D>>,? extends Update<SimpleMessage<D>>> fun) |
Parser<D,T> |
Parser.postprocess(Action.Continuation<State,State,SimpleMessage<D>,State> cont)
Appends an ad-hoc continuation to the semantic effect of this parser.
|
Parser<D,T> |
Parser.postprocess(Action.Continuation<State,State,SimpleMessage<D>,State> cont,
int complexity)
Appends an ad-hoc continuation to the semantic effect of this parser.
|
Parser<D,T> |
Parser.postprocess(Update<SimpleMessage<D>> effect)
Appends to the semantic effect of this parser.
|
Action<State,SimpleMessage<D>,State> |
Parser.process(Parser.Input<D,T> in,
Action.Visitor<Parser.Output<D,T>,SimpleMessage<D>,Parser.Input<D,T>> errorVisitor) |
static <D,T> Parser<D,T> |
Parser.succeed(Function<? super Parser.Input<D,T>,? extends Update<SimpleMessage<D>>> effect)
Returns a parser that succeeds with the given state-dependent effect,
consuming no tokens.
|
static <D,T> Parser<D,T> |
Parser.succeed(Update<SimpleMessage<D>> effect)
Returns a parser that succeeds with the given effect, consuming no tokens.
|
default Parser.Output<D,T> |
Parser.Input.transitionBy(Update<SimpleMessage<D>> effect) |
Parser.Output<D,T> |
Parser.Output.withEffect(Update<SimpleMessage<D>> effect) |
Parser.Output<D,T> |
Parser.Output.withPostEffect(Update<SimpleMessage<D>> effect) |
Parser.Output<D,T> |
Parser.Output.withPreEffect(Update<SimpleMessage<D>> effect) |
Constructor and Description |
---|
Output(Update<SimpleMessage<D>> effect,
Parser.Input<D,T> next) |
Result(SortedSet<Parser.Input<D,T>> obstructions,
List<Map.Entry<A,List<SimpleMessage<D>>>> results) |
Modifier and Type | Method and Description |
---|---|
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
ContentParserGenerator.getMessageReceiver() |
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
ContentParserGenerator.getMessageReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
ContentParserGenerator.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
void |
ContentParserGenerator.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
Constructor and Description |
---|
TypedDOMGenerator(DTD.Dtd dtd,
File destination,
String packageName,
boolean useArrays,
boolean generateFunctions,
boolean paisleySupport,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> rec)
Variant which gets the DTD as a completely self-contained object.
|
TypedDOMGenerator(DTD.Dtd dtd,
File destination,
String packageName,
boolean useArrays,
boolean generateFunctions,
boolean paisleySupport,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> rec)
Variant which gets the DTD as a completely self-contained object.
|
TypedDOMGenerator(File dtdFile,
FileReader dtdReader,
File destination,
String packageName,
boolean useArrays,
boolean generateFunctions,
boolean paisleySupport,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> rec)
Variant which reads the dtd from the given FileReader.
|
TypedDOMGenerator(File dtdFile,
FileReader dtdReader,
File destination,
String packageName,
boolean useArrays,
boolean generateFunctions,
boolean paisleySupport,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> rec)
Variant which reads the dtd from the given FileReader.
|
Constructor and Description |
---|
TypedDTD(MessageReceiver<? super SimpleMessage> rec) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
DOMClient.msg |
Modifier and Type | Method and Description |
---|---|
void |
DOMClient.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
Interpreter.msg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
FunctionLibrary.msg |
Modifier and Type | Method and Description |
---|---|
void |
Interpreter.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
void |
Frontend.setMessageReceiver(MessageReceiver<? super SimpleMessage> msg) |
Constructor and Description |
---|
BuiltInFunctions(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
FunctionLibrary(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
TdomClient.msg |
Modifier and Type | Method and Description |
---|---|
void |
TdomClient.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
Modifier and Type | Method and Description |
---|---|
void |
TypeInference.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
void |
NumerusInference.setMessageReceiver(MessageReceiver<? super SimpleMessage> msg) |
Modifier and Type | Class and Description |
---|---|
protected class |
UMod2format.ThrowCritical<M extends SimpleMessage<XMLDocumentIdentifier>> |
Modifier and Type | Method and Description |
---|---|
void |
Checker.check(UMod.Forest model0,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg0)
Checks currently ONLY that field names are unique (from class to root)
and there is only one "KEY" field.
|
static boolean |
Types.hasCanonicalOrder(UMod.Type t,
UMod.Forest f,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
For basic types a canonical order is always defined;
for internal defs depends on generated code;
for external types ask the environment.
|
static Format |
Types.implementationFlagFormat(UMod.Type t,
UMod.Forest f,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
selects between tree and hash implementations for maps and sets
|
protected eu.bandm.tools.formatfrontends.absy.Document_pattern |
UMod2format.Compiler.parseHint(String hint,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
void |
UMod2format.process(UMod.Forest code,
GeneratedContext context,
GeneratedClass modelclass,
GeneratedClass basematcher,
boolean getterfunctions,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> externalMsgDrain)
generates
formatter class, derived from visitor "basematcher"
as inner class in "forestclass" global fields and constants in this class entry methods ("toFormat()" etc) creates a "Format Creator" class by deriving from formatfrontends.GeneriCompiler
creates some fields and sets initializerscalls compilation method for each umod class definition flushes accumulated const declarations to class code. Assumes that the code of "error()" is volatile! |
static UMod.Forest |
Reducer.reduce(UMod.Forest in_forest,
eu.bandm.tools.umod.absy.Document_modeltree el,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg0) |
static UMod.Forest |
Main.stream2umod(UMod.Forest forest,
InputStream str,
String sourcefilename,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
Main worker method, can be called from other classes.
|
void |
UMod2Tsoap.translate(String parsername,
String writername,
UMod.Forest model0,
GeneratedContext context,
MetaClass basevisitor,
boolean visitoroptimize,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg0) |
GeneratedPackage |
UMod2java.translate(UMod.Forest code,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg0,
String pkgname,
Format generationDescription,
boolean getterfunctions,
boolean setterfunctions,
boolean make_patterns,
boolean saxgen,
boolean swingtreegen,
boolean visitordebug,
boolean visitoroptimize,
boolean allrewriterwarnings,
boolean monolithic,
boolean floatNotDouble,
boolean constructorsPre20181214)
Main class for translating a UMod model into Java source code.
|
Constructor and Description |
---|
Compiler(UMod.Forest umod0,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
Derived consructor which additionally only sets the current umod model.
|
JavaMapper(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
UMod.Forest model,
boolean floatNotDouble) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
NamespaceFilter.msg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
SourceHabitats.msg |
Modifier and Type | Method and Description |
---|---|
MessageReceiver<? super SimpleMessage<D>> |
TunableParser.getMessageReceiver() |
Modifier and Type | Method and Description |
---|---|
protected static void |
RomanNumbers.error(MessageReceiver<SimpleMessage<?>> msg,
String s) |
protected static void |
RomanNumbers.error(MessageReceiver<SimpleMessage<?>> msg,
String s,
Object... os) |
static Function<String,Integer> |
RomanNumbers.f_roman2integer(MessageReceiver<SimpleMessage<?>> msg,
boolean lowercasesupported,
boolean uppercasesupported,
boolean subtractiveformat_directNeighbour,
boolean subtractiveformat_fartherNeighbour)
Deprecated.
FIXME check if used in tscore??
|
static @Opt Integer |
RomanNumbers.roman2integer(MessageReceiver<SimpleMessage<?>> msg,
String s,
boolean lowercasesupported,
boolean uppercasesupported,
boolean subtractiveformat_directNeighbour,
boolean subtractiveformat_fartherNeighbour)
Public and Central Service Access Point to convert a string.
|
void |
ClassFileVisitor.setMessageReceiver(MessageReceiver<? super SimpleMessage<D>> msg) |
void |
TunableParser.setMessageReceiver(MessageReceiver<? super SimpleMessage<D>> messageReceiver) |
Constructor and Description |
---|
NamespaceFilter(ContentHandler out,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
SourceHabitats(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
TunableParser(Reader in,
D id,
MessageReceiver<? super SimpleMessage<D>> msg)
Constructor.
|
TunableParserForXml(Reader in,
D id,
MessageReceiver<? super SimpleMessage<D>> msg)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
protected static MessageTee<SimpleMessage<String>> |
CallXslt.msg |
protected MessageReceiver<SimpleMessage<String>> |
JarLinker.msg |
protected static MessageCounter<SimpleMessage<String>> |
CallXslt.msg_c |
protected static MessagePrinter<SimpleMessage<String>> |
CallXslt.msg_p |
Modifier and Type | Method and Description |
---|---|
void |
JarLinker.linkApplication(MessageReceiver<SimpleMessage<String>> msg,
String[] mainClassNames,
File targetJarFile,
File manifestFile,
File[] libraries,
Multimap<File,String> additionals)
Method for packing a binary distribution into a jar file.
|
void |
JWhich.setMessageCounter(MessageCounter<SimpleMessage<eu.bandm.tools.util3.JWhich.ClassFile<?>>> cnt) |
void |
JWhich.setMessageReceiver(MessageReceiver<SimpleMessage<eu.bandm.tools.util3.JWhich.ClassFile<?>>> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage> |
DTDGenerator.msg |
Modifier and Type | Method and Description |
---|---|
void |
DTDGenerator.setMessageReceiver(MessageReceiver<? super SimpleMessage> msg) |
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> |
X_LLkParser.messageReceiver |
Modifier and Type | Method and Description |
---|---|
void |
X_LLkParser.setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> mr) |
Modifier and Type | Method and Description |
---|---|
protected <D> void |
XantlrTdom.init(X_LLkParser parser0,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> antlrMessages,
int queueSize,
ContentHandler debugSaxEvents,
TypedDTD tdomDtdModel,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> tdomMessages) |
protected <D> void |
XantlrTdom.init(X_LLkParser parser0,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> antlrMessages,
int queueSize,
ContentHandler debugSaxEvents,
TypedDTD tdomDtdModel,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> tdomMessages) |
static XantlrTdom |
XantlrTdom.link(X_LLkParser parser,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> antlrMessages,
int queueSize,
ContentHandler debugSaxEvents,
TypedDTD tdomDtdModel,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> tdomMessages)
This method creates a XantlrTdom object, which subsequently will be used
to parse a source text (with an xantlr generated parser,
see Xantlr user documentation.,
and to generate a corresponding tdom model,
see Tdom user documentation..
|
static XantlrTdom |
XantlrTdom.link(X_LLkParser parser,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> antlrMessages,
int queueSize,
ContentHandler debugSaxEvents,
TypedDTD tdomDtdModel,
MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> tdomMessages)
This method creates a XantlrTdom object, which subsequently will be used
to parse a source text (with an xantlr generated parser,
see Xantlr user documentation.,
and to generate a corresponding tdom model,
see Tdom user documentation..
|
Modifier and Type | Field and Description |
---|---|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
ForeignFilter.msg |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
AttributeChecks_valueTemplates.msg |
see also the complete user documentation .