public final class EvalExpression extends Expression implements IEvalExpression
eval-expression eval ( <expression> )
IGosuParser_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
EvalExpression(ITypeUsesMap typeUsesMap)
Constructs an 'eval' expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheProgram(String strTypeName,
IGosuProgramInternal gsClass) |
Object |
evaluate()
Evaluates/executes the Gosu in the expression.
|
IGosuProgramInternal |
getCachedProgram(String strTypeName) |
List<ICapturedSymbol> |
getCapturedForBytecode() |
Map<String,ITypeVariableDefinition> |
getCapturedTypeVars() |
Expression |
getExpression() |
ITypeUsesMap |
getTypeUsesMap() |
void |
setCapturedSymbolsForBytecode(List<ICapturedSymbol> captured) |
void |
setCapturedTypeVars(Map<String,ITypeVariableDefinition> typeVariables) |
void |
setExpression(Expression expression)
The string expression containing Gosu code to evaluate/execute.
|
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, getType, getTypeImpl, isNullSafe, isUnchecked, setTypeaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isCompileTimeConstant, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluate, getContextType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParentpublic EvalExpression(ITypeUsesMap typeUsesMap)
public void setCapturedSymbolsForBytecode(List<ICapturedSymbol> captured)
public List<ICapturedSymbol> getCapturedForBytecode()
public void cacheProgram(String strTypeName, IGosuProgramInternal gsClass)
public IGosuProgramInternal getCachedProgram(String strTypeName)
public ITypeUsesMap getTypeUsesMap()
public void setExpression(Expression expression)
public Expression getExpression()
getExpression in interface IEvalExpressionpublic Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic String toString()
ExpressiontoString in class Expressionpublic void setCapturedTypeVars(Map<String,ITypeVariableDefinition> typeVariables)
public Map<String,ITypeVariableDefinition> getCapturedTypeVars()
Copyright © 2015. All rights reserved.