Package de.mhus.lib.core.parser
Class CompiledString
- java.lang.Object
-
- de.mhus.lib.core.parser.CompiledString
-
public class CompiledString extends Object
Parsed and tree representated compiled variant of the original string. This is used to output the changed representation of the string.- Author:
- mikehummel
-
-
Constructor Summary
Constructors Constructor Description CompiledString(StringPart[] compiled)CompiledString(LinkedList<StringPart> compiled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(StringBuilder sb)Return a readable information about the tree structure.voidexecute(StringBuilder sb, Map<String,Object> attributes)Stringexecute(Map<String,Object> attributes)Return the new, compiled string.
-
-
-
Constructor Detail
-
CompiledString
public CompiledString(StringPart[] compiled)
-
CompiledString
public CompiledString(LinkedList<StringPart> compiled)
-
-
Method Detail
-
execute
public String execute(Map<String,Object> attributes) throws de.mhus.lib.errors.MException
Return the new, compiled string.- Parameters:
attributes-- Returns:
- the resulting string
- Throws:
de.mhus.lib.errors.MException
-
execute
public void execute(StringBuilder sb, Map<String,Object> attributes) throws de.mhus.lib.errors.MException
- Throws:
de.mhus.lib.errors.MException
-
dump
public void dump(StringBuilder sb)
Return a readable information about the tree structure.- Parameters:
sb-
-
-