public final class UnaryExpression extends Expression implements IUnaryExpression
IGosuParser| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_bNegated |
protected boolean |
_bUnchecked |
protected Expression |
_expression |
_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
UnaryExpression() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate() |
Expression |
getExpression() |
boolean |
isCompileTimeConstant() |
boolean |
isNegated() |
boolean |
isSupportedType(IType type) |
boolean |
isUnchecked() |
void |
setExpression(Expression e) |
void |
setNegated(boolean bNegated) |
void |
setUnchecked(boolean flag) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, getType, getTypeImpl, isNullSafe, 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, 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, isNullSafeaddExceptionsFrom, 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, isSuppressed, isSynthetic, setLocation, setParentprotected boolean _bNegated
protected boolean _bUnchecked
protected Expression _expression
public boolean isNegated()
isNegated in interface IUnaryExpressionpublic void setNegated(boolean bNegated)
public Expression getExpression()
getExpression in interface IUnaryExpressionpublic void setExpression(Expression e)
public void setUnchecked(boolean flag)
public boolean isUnchecked()
isUnchecked in interface IExpressionisUnchecked in class Expressionpublic boolean isCompileTimeConstant()
isCompileTimeConstant in interface IParsedElementisCompileTimeConstant in class ParsedElementpublic Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic boolean isSupportedType(IType type)
public String toString()
ExpressiontoString in class ExpressionCopyright © 2020. All rights reserved.