Package com.killcoding.jsplus
Class TextScript
java.lang.Object
com.killcoding.jsplus.TextScript
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected JsPlusContextprotected static final Map<String,JsPlusContext> static Stringprotected Stringprotected Scannerprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevalScript(String script) protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringstatic booleaninitEngine(boolean allowAllAccess, String engineName) static booleaninitEngine(boolean allowAllAccess, String engineName, String lib) static booleaninitEngine(String engineName) static booleaninitEngine(String engineName, String lib) booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanisExpression(String line) protected booleanprotected booleanprotected booleanparse()parse(boolean showScript) protected Stringprotected Stringprotected StringparseDefault(String line) protected Stringprotected StringparseElseIf(String line) protected Stringprotected StringparseExpression(String line) protected Stringprotected StringparseLogic(String line) protected StringparseRawText(String line) voidsetAllowAllAccess(boolean allowAllAccess) voidvoidsetVarName(String varName)
-
Field Details
-
DEFAULT_ENGINE_NAME
-
allowAllAccess
-
CONTEXT_MAPPING
-
prefix
-
varName
-
context
-
scanner
-
-
Constructor Details
-
Method Details
-
isEnd
-
parseEnd
-
isBlock
-
isDefault
-
parseDefault
-
isCase
-
parseCase
-
isCode
-
parseCode
-
isJump
-
parseJump
-
isElseIf
-
parseElseIf
-
isElse
-
parseElse
-
isComment
-
isLogic
-
parseLogic
-
isExpression
-
isMatched
-
parseExpression
-
parseRawText
-
parse
- Throws:
Exception
-
parse
- Throws:
Exception
-
evalScript
- Throws:
Exception
-
eval
- Throws:
Exception
-
addParams
- Throws:
Exception
-
useEngine
- Throws:
Exception
-
initEngine
- Throws:
Exception
-
initEngine
- Throws:
Exception
-
initEngine
- Throws:
Exception
-
initEngine
public static boolean initEngine(boolean allowAllAccess, String engineName, String lib) throws Exception - Throws:
Exception
-
getContext
- Throws:
Exception
-
setPrefix
-
getPrefix
-
setVarName
-
getVarName
-
getExpressionRegex
-
getLogicRegex
-
getElseRegex
-
getElseIfRegex
-
getEndRegex
-
getJumpRegex
-
getCaseRegex
-
getDefaultRegex
-
getCodeRegex
-
getCommentRegex
-
getBlockRegex
-
setAllowAllAccess
-
isAllowAllAccess
-