public class MessageTemplate extends java.lang.Object implements MessageBuilder
Constructor and Description |
---|
MessageTemplate(Generator ga,
java.lang.String messageTemplate,
int param0)
Create a message template with a single parameter
|
Modifier and Type | Method and Description |
---|---|
void |
generateErrorMessage()
Generate code to construct the error message and leave it on the run-time stack
|
public MessageTemplate(Generator ga, java.lang.String messageTemplate, int param0)
ga
- the GeneratormessageTemplate
- a message with a placeholder for the dynamic insertion in the form "{$1}"param0
- the slot number on the bytecode stack of the variable whose value is to be inserted
into the message; or -1 to indicate that it is to be taken from the top of the bytecode stackpublic void generateErrorMessage()
MessageBuilder
generateErrorMessage
in interface MessageBuilder
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.