Package gw.lang.parser
Class ParserOptions
- java.lang.Object
-
- gw.lang.parser.ParserOptions
-
public class ParserOptions extends Object
-
-
Constructor Summary
Constructors Constructor Description ParserOptions()
-
Method Summary
-
-
-
Method Detail
-
withParser
public ParserOptions withParser(IGosuParser parser)
-
withTypeUsesMap
public ParserOptions withTypeUsesMap(ITypeUsesMap typeUsesMap)
-
withEnclosingType
public ParserOptions withEnclosingType(String strEnclosingType)
-
withDefaultTypeUsesMap
public ParserOptions withDefaultTypeUsesMap()
-
withExpectedType
public ParserOptions withExpectedType(IType expectedType)
-
withTokenizerInstructor
public ParserOptions withTokenizerInstructor(ITokenizerInstructor ti)
-
withFileContext
public ParserOptions withFileContext(IFileContext fileContext)
-
withCtxInferenceMgr
public ParserOptions withCtxInferenceMgr(Object ctxInferenceMgr)
-
withGenRootExprAccess
public ParserOptions withGenRootExprAccess(boolean genRootExprAccess)
-
withAdditionalDFSDecls
public ParserOptions withAdditionalDFSDecls(ISymbolTable additionalDFSDecls)
-
withCaptureSymbolsForEval
public ParserOptions withCaptureSymbolsForEval(boolean captureSymbolsForEval)
-
withDeclSymbols
public ParserOptions withDeclSymbols(Map<String,List<IFunctionSymbol>> declSymbols)
-
asThrowawayProgram
public ParserOptions asThrowawayProgram()
-
asAnonymous
public ParserOptions asAnonymous()
-
withStatementsOnly
public ParserOptions withStatementsOnly()
-
isStatementsOnly
public boolean isStatementsOnly()
-
setParserOptions
public void setParserOptions(IGosuParser parser)
-
getExpectedType
public IType getExpectedType()
-
getEnclosingType
public String getEnclosingType()
-
getFileContext
public IFileContext getFileContext()
-
getTypeUsesMap
public ITypeUsesMap getTypeUsesMap()
-
getTi
public ITokenizerInstructor getTi()
-
isBGenRootExprAccess
public boolean isBGenRootExprAccess()
-
getAdditionalDFSDecls
public ISymbolTable getAdditionalDFSDecls()
-
isCaptureSymbolsForEval
public boolean isCaptureSymbolsForEval()
-
getDeclSymbols
public Map<String,List<IFunctionSymbol>> getDeclSymbols()
-
withShouldOptimize
public ParserOptions withShouldOptimize(boolean shouldOptimize)
-
isShouldOptimize
public boolean isShouldOptimize()
-
getParser
public IGosuParser getParser()
-
getCtxInferenceMgr
public Object getCtxInferenceMgr()
-
withSuperType
public ParserOptions withSuperType(IType superType)
-
getSuperType
public IType getSuperType()
-
withScriptPartId
public ParserOptions withScriptPartId(IScriptPartId partId)
-
getScriptPartId
public IScriptPartId getScriptPartId()
-
isThrowawayProgram
public boolean isThrowawayProgram()
-
isAnonymous
public boolean isAnonymous()
-
allowUses
public boolean allowUses()
-
withIgnoreWarning
public ParserOptions withIgnoreWarning(ResourceKey msgKey)
-
allowUsesInBody
public ParserOptions allowUsesInBody()
-
-