public class Token extends TextBuilder
Modifier and Type | Class and Description |
---|---|
static class |
Token.StringToken |
TextBuilder.StrBuf
Modifier and Type | Field and Description |
---|---|
protected IContext |
ctx |
protected boolean |
disableCompactMode |
static Token |
EMPTY_TOKEN |
static Token |
EMPTY_TOKEN2 |
protected int |
line |
protected static ILogger |
logger |
boolean |
removeNextLineBreak |
protected String |
s |
__buffer, __caller
Modifier | Constructor and Description |
---|---|
|
Token(String s,
IContext context) |
|
Token(String s,
IContext context,
boolean disableCompactMode) |
protected |
Token(String s,
TextBuilder caller) |
protected |
Token(String s,
TextBuilder caller,
boolean disableCompactMode) |
Modifier and Type | Method and Description |
---|---|
Token |
build()
Sub class could implement this method to append the generated
source code to the buffer
|
Token |
build(IContext includeCtx) |
Token |
clone(TextBuilder caller)
return a clone of this TextBuilder instance
|
void |
compact() |
protected String |
compact(String s) |
protected boolean |
compactMode() |
protected void |
fail() |
boolean |
isOk() |
protected void |
output() |
protected void |
outputExpression() |
protected void |
outputExpression(boolean needsPrint) |
protected void |
outputExpression(List<String> nullValueTester) |
Token |
p2tline(String msg,
Object... args) |
Token |
p3tline(String msg,
Object... args) |
Token |
p4tline(String msg,
Object... args) |
Token |
p5tline(String msg,
Object... args) |
Token |
pline() |
Token |
pline(String msg,
Object... args) |
protected void |
pp(String s) |
static String |
processRythmExpression(String s,
IContext ctx) |
Token |
ptline(String msg,
Object... args) |
boolean |
removeLeadingLineBreak() |
static String |
stripJavaExtension(String s,
IContext ctx) |
boolean |
test(String line) |
__append, __append, __append, __append, __append, __append, __append, __append, __append, __getBuffer, __setBuffer, buffer, caller, getSelfOut, np, p, p, p, p, p, p, p, p, p, p2t, p2tn, p3t, p3tn, p4t, p4tn, pn, pn, pt, ptn, setSelfOut, toString
public static Token EMPTY_TOKEN
public static Token EMPTY_TOKEN2
protected static final ILogger logger
protected String s
protected IContext ctx
protected int line
protected boolean disableCompactMode
public boolean removeNextLineBreak
protected Token(String s, TextBuilder caller)
protected Token(String s, TextBuilder caller, boolean disableCompactMode)
public boolean removeLeadingLineBreak()
protected boolean compactMode()
protected final void fail()
public boolean test(String line)
public boolean isOk()
public final Token build()
TextBuilder
build
in class TextBuilder
protected void output()
protected final void outputExpression()
protected final void outputExpression(boolean needsPrint)
public Token pline()
protected void pp(String s)
public Token clone(TextBuilder caller)
TextBuilder
clone
in class TextBuilder
public void compact()
Copyright © 2015. All Rights Reserved.