public class Program extends Expression implements IProgram
IGosuParser_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
Program()
Constructs a Program given an ISymbolTable instance.
|
evaluate, getContextType, getType, getTypeImpl, isNullSafe, isUnchecked, setTypeaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getLineNum, getModule, getParent, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseIssue, hasParseIssues, hasParseWarning, 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, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findRootParsedElement, getColumn, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getLineNum, getModule, getParent, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseIssue, hasParseIssues, hasParseWarning, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParentpublic Statement getMainStatement()
getMainStatement in interface IProgrampublic void setMainStatement(Statement mainStatement)
public Map getFunctions()
getFunctions in interface IProgrampublic void setFunctions(Map functions)
public IType getDeclaredReturnType()
public void setDeclaredReturnType(IType declaredReturnType)
public Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic void addParseWarning(IParseIssue warning)
addParseWarning in interface IParsedElementaddParseWarning in class ParsedElementpublic ParseTree getLocation()
getLocation in interface IParsedElementgetLocation in class ParsedElementpublic String toString()
ExpressiontoString in class Expressionpublic IType getReturnType()
getReturnType in interface IParsedElementgetReturnType in class Expressionpublic boolean hasContent()
hasContent in interface IProgrampublic <E extends IParsedElement> boolean getContainedParsedElementsByType(Class<E> parsedElementType, List<E> listResults)
ParsedElementgetContainedParsedElementsByType in interface IParsedElementgetContainedParsedElementsByType in class ParsedElementparsedElementType - The type of parsed element to find.listResults - A list of all the contained parsed elements matching the
specified type. Can be null if you are only interested in whether or not
parsedElementType exists in this element.public IParsedElementWithAtLeastOneDeclaration findDeclaringStatement(IParsedElement element, String identifierName)
findDeclaringStatement in interface IParsedElementfindDeclaringStatement in class ParsedElementpublic List<IParseIssue> getParseIssues()
getParseIssues in interface IParsedElementgetParseIssues in class ParsedElementpublic List<IParseIssue> getImmediateParseIssues()
getImmediateParseIssues in interface IParsedElementgetImmediateParseIssues in class ParsedElementpublic boolean hasParseExceptions()
hasParseExceptions in interface IParsedElementhasParseExceptions in class ParsedElementpublic List<IParseIssue> getParseExceptions()
getParseExceptions in interface IParsedElementgetParseExceptions in class ParsedElementpublic List<IParseIssue> getParseWarnings()
getParseWarnings in interface IParsedElementgetParseWarnings in class ParsedElementpublic boolean hasParseWarnings()
hasParseWarnings in interface IParsedElementhasParseWarnings in class ParsedElementCopyright © 2016. All rights reserved.