org.rythmengine.internal.parser
Class ParserBase
java.lang.Object
org.rythmengine.internal.parser.ParserBase
- All Implemented Interfaces:
- IParser
- Direct Known Subclasses:
- BlockCloseParser, CodeTypeBlockEndSensor, CodeTypeBlockStartSensor, ParserDispatcher, RemoveLeadingLineBreakAndSpacesParser, RemoveLeadingSpacesIfLineBreakParser, StringTokenParser
public abstract class ParserBase
- extends Object
- implements IParser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.rythmengine.internal.IParser |
go |
NULL_INST
public static final ParserBase NULL_INST
logger
protected static final ILogger logger
engine_
protected final RythmEngine engine_
ParserBase
protected ParserBase(IContext context)
pattern
public static Pattern pattern(String regex,
Object... args)
dialect
protected final IDialect dialect()
a
protected final String a()
remain
protected final String remain()
currentLine
protected final int currentLine()
peek
protected final char peek()
pop
protected final char pop()
ctx
public final IContext ctx()
- Specified by:
ctx in interface IParser
builder
protected final CodeBuilder builder()
step
protected final void step(int i)
raiseParseException
protected final void raiseParseException(String msg,
Object... args)
checkRestrictedClass
protected final void checkRestrictedClass(String code)
isLastBuilderLiteral
protected boolean isLastBuilderLiteral()
processFollowingOpenBraceAndLineBreak
protected void processFollowingOpenBraceAndLineBreak(boolean leadingLB)
p
public static void p(int i,
com.stevesoft.pat.Regex r)
p
public static void p(String s,
com.stevesoft.pat.Regex r)
p
public static void p(String s,
com.stevesoft.pat.Regex r,
int max)
p
public static void p(com.stevesoft.pat.Regex r,
int max)
p
public static void p(com.stevesoft.pat.Regex r)
Copyright © 2014. All Rights Reserved.