Class ParserOptions


  • public class ParserOptions
    extends java.lang.Object
    • Field Detail

      • _expectedType

        private IType _expectedType
      • _strEnclosingType

        private java.lang.String _strEnclosingType
      • _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
      • _superType

        private IType _superType
      • _bStatementsOnly

        private boolean _bStatementsOnly
      • _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
    • Constructor Detail

      • ParserOptions

        public ParserOptions()
    • Method Detail

      • withEnclosingType

        public ParserOptions withEnclosingType​(java.lang.String strEnclosingType)
      • withDefaultTypeUsesMap

        public ParserOptions withDefaultTypeUsesMap()
      • withCtxInferenceMgr

        public ParserOptions withCtxInferenceMgr​(java.lang.Object ctxInferenceMgr)
      • withGenRootExprAccess

        public ParserOptions withGenRootExprAccess​(boolean genRootExprAccess)
      • withCaptureSymbolsForEval

        public ParserOptions withCaptureSymbolsForEval​(boolean captureSymbolsForEval)
      • withDeclSymbols

        public ParserOptions withDeclSymbols​(java.util.Map<java.lang.String,​java.util.List<IFunctionSymbol>> declSymbols)
      • isStatementsOnly

        public boolean isStatementsOnly()
      • setParserOptions

        public void setParserOptions​(IGosuParser parser)
      • getExpectedType

        public IType getExpectedType()
      • getEnclosingType

        public java.lang.String getEnclosingType()
      • 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()
      • getCtxInferenceMgr

        public java.lang.Object getCtxInferenceMgr()
      • getSuperType

        public IType getSuperType()
      • isThrowawayProgram

        public boolean isThrowawayProgram()
      • isAnonymous

        public boolean isAnonymous()
      • allowUses

        public boolean allowUses()