Package gw.lang.parser
Class ParserOptions
- java.lang.Object
-
- gw.lang.parser.ParserOptions
-
public class ParserOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ISymbolTable_additionalDFSDeclsprivate boolean_allowUsesprivate boolean_bAnonprivate boolean_bGenRootExprAccessprivate boolean_bStatementsOnlyprivate boolean_captureSymbolsForEvalprivate java.lang.Object_ctxInferenceMgrprivate java.util.Map<java.lang.String,java.util.List<IFunctionSymbol>>_declSymbolsprivate IType_expectedTypeprivate IFileContext_fileContextprivate java.util.Set<ResourceKey>_ignoreWarningsprivate IGosuParser_parserprivate IScriptPartId_partIdprivate boolean_shouldOptimizeprivate java.lang.String_strEnclosingTypeprivate IType_superTypeprivate boolean_throwawayProgramprivate ITokenizerInstructor_tiprivate ITypeUsesMap_typeUsesMap
-
Constructor Summary
Constructors Constructor Description ParserOptions()
-
Method Summary
-
-
-
Field Detail
-
_typeUsesMap
private ITypeUsesMap _typeUsesMap
-
_expectedType
private IType _expectedType
-
_strEnclosingType
private java.lang.String _strEnclosingType
-
_ti
private ITokenizerInstructor _ti
-
_fileContext
private IFileContext _fileContext
-
_bGenRootExprAccess
private boolean _bGenRootExprAccess
-
_additionalDFSDecls
private ISymbolTable _additionalDFSDecls
-
_captureSymbolsForEval
private boolean _captureSymbolsForEval
-
_declSymbols
private java.util.Map<java.lang.String,java.util.List<IFunctionSymbol>> _declSymbols
-
_shouldOptimize
private boolean _shouldOptimize
-
_parser
private IGosuParser _parser
-
_superType
private IType _superType
-
_bStatementsOnly
private boolean _bStatementsOnly
-
_partId
private IScriptPartId _partId
-
_throwawayProgram
private boolean _throwawayProgram
-
_ctxInferenceMgr
private java.lang.Object _ctxInferenceMgr
-
_ignoreWarnings
private java.util.Set<ResourceKey> _ignoreWarnings
-
_allowUses
private boolean _allowUses
-
_bAnon
private boolean _bAnon
-
-
Method Detail
-
withParser
public ParserOptions withParser(IGosuParser parser)
-
withTypeUsesMap
public ParserOptions withTypeUsesMap(ITypeUsesMap typeUsesMap)
-
withEnclosingType
public ParserOptions withEnclosingType(java.lang.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(java.lang.Object ctxInferenceMgr)
-
withGenRootExprAccess
public ParserOptions withGenRootExprAccess(boolean genRootExprAccess)
-
withAdditionalDFSDecls
public ParserOptions withAdditionalDFSDecls(ISymbolTable additionalDFSDecls)
-
withCaptureSymbolsForEval
public ParserOptions withCaptureSymbolsForEval(boolean captureSymbolsForEval)
-
withDeclSymbols
public ParserOptions withDeclSymbols(java.util.Map<java.lang.String,java.util.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 java.lang.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 java.util.Map<java.lang.String,java.util.List<IFunctionSymbol>> getDeclSymbols()
-
withShouldOptimize
public ParserOptions withShouldOptimize(boolean shouldOptimize)
-
isShouldOptimize
public boolean isShouldOptimize()
-
getParser
public IGosuParser getParser()
-
getCtxInferenceMgr
public java.lang.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()
-
-