org.rythmengine.internal
Class Token
java.lang.Object
org.rythmengine.utils.TextBuilder
org.rythmengine.internal.Token
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- BlockToken, CodeToken, Directive, Token.StringToken
public class Token
- extends TextBuilder
| Methods inherited from class org.rythmengine.utils.TextBuilder |
__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 |
EMPTY_TOKEN
public static Token EMPTY_TOKEN
EMPTY_TOKEN2
public static Token EMPTY_TOKEN2
logger
protected static final ILogger logger
s
protected String s
ctx
protected IContext ctx
line
protected int line
disableCompactMode
protected boolean disableCompactMode
removeNextLineBreak
public boolean removeNextLineBreak
Token
protected Token(String s,
TextBuilder caller)
Token
protected Token(String s,
TextBuilder caller,
boolean disableCompactMode)
Token
public Token(String s,
IContext context)
Token
public Token(String s,
IContext context,
boolean disableCompactMode)
removeLeadingLineBreak
public boolean removeLeadingLineBreak()
compactMode
protected boolean compactMode()
fail
protected final void fail()
test
public boolean test(String line)
isOk
public boolean isOk()
build
public final Token build()
- Description copied from class:
TextBuilder
- Sub class could implement this method to append the generated
source code to the buffer
- Overrides:
build in class TextBuilder
- Returns:
- this builder
build
public final Token build(IContext includeCtx)
output
protected void output()
outputExpression
protected final void outputExpression(List<String> nullValueTester)
outputExpression
protected final void outputExpression()
outputExpression
protected final void outputExpression(boolean needsPrint)
ptline
public Token ptline(String msg,
Object... args)
p2tline
public Token p2tline(String msg,
Object... args)
p3tline
public Token p3tline(String msg,
Object... args)
p4tline
public Token p4tline(String msg,
Object... args)
p5tline
public Token p5tline(String msg,
Object... args)
pline
public Token pline(String msg,
Object... args)
pline
public Token pline()
pp
protected void pp(String s)
clone
public Token clone(TextBuilder caller)
- Description copied from class:
TextBuilder
- return a clone of this TextBuilder instance
- Overrides:
clone in class TextBuilder
- Returns:
- the clone
compact
public void compact()
compact
protected String compact(String s)
processRythmExpression
public static String processRythmExpression(String s,
IContext ctx)
stripJavaExtension
public static String stripJavaExtension(String s,
IContext ctx)
Copyright © 2014. All Rights Reserved.