org.rythmengine.internal.parser
Class ParserBase

java.lang.Object
  extended by 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


Field Summary
protected  RythmEngine engine_
           
protected static ILogger logger
           
static ParserBase NULL_INST
           
 
Constructor Summary
protected ParserBase(IContext context)
           
 
Method Summary
protected  String a()
           
protected  CodeBuilder builder()
           
protected  void checkRestrictedClass(String code)
           
 IContext ctx()
           
protected  int currentLine()
           
protected  IDialect dialect()
           
protected  boolean isLastBuilderLiteral()
           
static void p(int i, com.stevesoft.pat.Regex r)
           
static void p(com.stevesoft.pat.Regex r)
           
static void p(com.stevesoft.pat.Regex r, int max)
           
static void p(String s, com.stevesoft.pat.Regex r)
           
static void p(String s, com.stevesoft.pat.Regex r, int max)
           
static Pattern pattern(String regex, Object... args)
           
protected  char peek()
           
protected  char pop()
           
protected  void processFollowingOpenBraceAndLineBreak(boolean leadingLB)
           
protected  void raiseParseException(String msg, Object... args)
           
protected  String remain()
           
protected  void step(int i)
           
 
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
 

Field Detail

NULL_INST

public static final ParserBase NULL_INST

logger

protected static final ILogger logger

engine_

protected final RythmEngine engine_
Constructor Detail

ParserBase

protected ParserBase(IContext context)
Method Detail

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.