Package net.sourceforge.plantuml.tim
Class Eater
- java.lang.Object
-
- net.sourceforge.plantuml.tim.Eater
-
- Direct Known Subclasses:
EaterAffectation
,EaterAffectationDefine
,EaterAssert
,EaterDeclareProcedure
,EaterDeclareReturnFunction
,EaterDumpMemory
,EaterElseIf
,EaterForeach
,EaterFunctionCall
,EaterIf
,EaterIfdef
,EaterIfndef
,EaterImport
,EaterInclude
,EaterIncludeDef
,EaterIncludesub
,EaterLegacyDefine
,EaterLegacyDefineLong
,EaterLog
,EaterReturn
,EaterStartsub
,EaterTheme
,EaterUndef
,EaterWhile
,StringEater
public abstract class Eater extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Eater(String s, LineLocation lineLocation)
Eater(StringLocated sl)
-
Method Summary
-
-
-
Constructor Detail
-
Eater
public Eater(StringLocated sl)
-
Eater
protected Eater(String s, LineLocation lineLocation)
-
-
Method Detail
-
getLineLocation
public final LineLocation getLineLocation()
-
analyze
public abstract void analyze(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
getCurrentPosition
public int getCurrentPosition()
-
eatAllToEnd
protected final String eatAllToEnd() throws EaterException
- Throws:
EaterException
-
eatExpression
public final TValue eatExpression(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
eatTokenStack
protected final TokenStack eatTokenStack() throws EaterException
- Throws:
EaterException
-
eatExpressionStopAtColon
protected final TValue eatExpressionStopAtColon(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
addIntoTokenStack
protected final void addIntoTokenStack(TokenStack tokenStack, boolean stopAtColon) throws EaterException
- Throws:
EaterException
-
eatAndGetQuotedString
public final String eatAndGetQuotedString() throws EaterException
- Throws:
EaterException
-
eatAndGetOptionalQuotedString
protected final String eatAndGetOptionalQuotedString() throws EaterException
- Throws:
EaterException
-
eatAndGetNumber
public final String eatAndGetNumber() throws EaterException
- Throws:
EaterException
-
eatAndGetSpaces
public final String eatAndGetSpaces() throws EaterException
- Throws:
EaterException
-
eatAndGetVarname
protected final String eatAndGetVarname() throws EaterException
- Throws:
EaterException
-
eatAndGetFunctionName
protected final String eatAndGetFunctionName() throws EaterException
- Throws:
EaterException
-
skipSpaces
public final void skipSpaces()
-
skipUntilChar
protected final void skipUntilChar(char ch)
-
peekChar
public final char peekChar()
-
matchAffectation
public final boolean matchAffectation()
-
peekCharN2
public final char peekCharN2()
-
hasNextChar
protected final boolean hasNextChar()
-
eatOneChar
public final char eatOneChar()
-
checkAndEatChar
protected final void checkAndEatChar(char ch) throws EaterException
- Throws:
EaterException
-
safeCheckAndEatChar
protected final boolean safeCheckAndEatChar(char ch) throws EaterException
- Throws:
EaterException
-
optionallyEatChar
protected final void optionallyEatChar(char ch) throws EaterException
- Throws:
EaterException
-
checkAndEatChar
protected final void checkAndEatChar(String s) throws EaterException
- Throws:
EaterException
-
addUpToLastLetterOrUnderscoreOrDigit
protected final void addUpToLastLetterOrUnderscoreOrDigit(StringBuilder sb)
-
addUpTo
protected final void addUpTo(char separator, StringBuilder sb)
-
eatDeclareFunction
protected final TFunctionImpl eatDeclareFunction(TContext context, TMemory memory, boolean unquoted, LineLocation location, boolean allowNoParenthesis, TFunctionType type) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
eatDeclareReturnFunctionWithOptionalReturn
protected final TFunctionImpl eatDeclareReturnFunctionWithOptionalReturn(TContext context, TMemory memory, boolean unquoted, LineLocation location) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
eatDeclareProcedure
protected final TFunctionImpl eatDeclareProcedure(TContext context, TMemory memory, boolean unquoted, LineLocation location) throws EaterException, EaterExceptionLocated
- Throws:
EaterException
EaterExceptionLocated
-
-