Class MessageFormatSupport.MessageCompiler
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.util.PropertyLookupParser
-
- org.pentaho.reporting.engine.classic.core.filter.MessageFormatSupport.MessageCompiler
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- MessageFormatSupport
protected static class MessageFormatSupport.MessageCompiler extends PropertyLookupParser
The message compiler maps all named references into numeric references.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.util.PropertyLookupParser
ESCAPE_MODE_ALL, ESCAPE_MODE_NONE, ESCAPE_MODE_STRICT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessageCompiler()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getFields()
Returns the collected fields as string-array.protected String
lookupVariable(String name)
Looks up the property with the given name.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.util.PropertyLookupParser
getClosingBraceChar, getEscapeChar, getEscapeMode, getMarkerChar, getOpeningBraceChar, handleVariableLookup, postProcessCharacter, setClosingBraceChar, setEscapeChar, setEscapeMode, setMarkerChar, setOpeningBraceChar, translateAndLookup, translateAndLookup
-
-
-
-
Method Detail
-
lookupVariable
protected String lookupVariable(String name)
Looks up the property with the given name. This replaces the name with the current index position.- Specified by:
lookupVariable
in classPropertyLookupParser
- Parameters:
name
- the name of the property to look up.- Returns:
- the translated value.
-
getFields
public String[] getFields()
Returns the collected fields as string-array. The order of the array contents matches the order of the index-position references in the translated message format.- Returns:
- the fields as array.
-
-