Package gw.lang.parser
Class ParserOptions
java.lang.Object
gw.lang.parser.ParserOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ISymbolTableprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate Objectprivate Map<String,List<IFunctionSymbol>> private ITypeprivate IFileContextprivate Set<ResourceKey>private IGosuParserprivate IScriptPartIdprivate booleanprivate Stringprivate ITypeprivate booleanprivate ITokenizerInstructorprivate ITypeUsesMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetTi()booleanbooleanbooleanbooleanbooleanbooleanvoidsetParserOptions(IGosuParser parser) withAdditionalDFSDecls(ISymbolTable additionalDFSDecls) withCaptureSymbolsForEval(boolean captureSymbolsForEval) withCtxInferenceMgr(Object ctxInferenceMgr) withDeclSymbols(Map<String, List<IFunctionSymbol>> declSymbols) withEnclosingType(String strEnclosingType) withExpectedType(IType expectedType) withFileContext(IFileContext fileContext) withGenRootExprAccess(boolean genRootExprAccess) withIgnoreWarning(ResourceKey msgKey) withParser(IGosuParser parser) withScriptPartId(IScriptPartId partId) withShouldOptimize(boolean shouldOptimize) withSuperType(IType superType) withTypeUsesMap(ITypeUsesMap typeUsesMap)
-
Field Details
-
_typeUsesMap
-
_expectedType
-
_strEnclosingType
-
_ti
-
_fileContext
-
_bGenRootExprAccess
private boolean _bGenRootExprAccess -
_additionalDFSDecls
-
_captureSymbolsForEval
private boolean _captureSymbolsForEval -
_declSymbols
-
_shouldOptimize
private boolean _shouldOptimize -
_parser
-
_superType
-
_bStatementsOnly
private boolean _bStatementsOnly -
_partId
-
_throwawayProgram
private boolean _throwawayProgram -
_ctxInferenceMgr
-
_ignoreWarnings
-
_allowUses
private boolean _allowUses -
_bAnon
private boolean _bAnon
-
-
Constructor Details
-
ParserOptions
public ParserOptions()
-
-
Method Details
-
withParser
-
withTypeUsesMap
-
withEnclosingType
-
withDefaultTypeUsesMap
-
withExpectedType
-
withTokenizerInstructor
-
withFileContext
-
withCtxInferenceMgr
-
withGenRootExprAccess
-
withAdditionalDFSDecls
-
withCaptureSymbolsForEval
-
withDeclSymbols
-
asThrowawayProgram
-
asAnonymous
-
withStatementsOnly
-
isStatementsOnly
public boolean isStatementsOnly() -
setParserOptions
-
getExpectedType
-
getEnclosingType
-
getFileContext
-
getTypeUsesMap
-
getTi
-
isBGenRootExprAccess
public boolean isBGenRootExprAccess() -
getAdditionalDFSDecls
-
isCaptureSymbolsForEval
public boolean isCaptureSymbolsForEval() -
getDeclSymbols
-
withShouldOptimize
-
isShouldOptimize
public boolean isShouldOptimize() -
getParser
-
getCtxInferenceMgr
-
withSuperType
-
getSuperType
-
withScriptPartId
-
getScriptPartId
-
isThrowawayProgram
public boolean isThrowawayProgram() -
isAnonymous
public boolean isAnonymous() -
allowUses
public boolean allowUses() -
withIgnoreWarning
-
allowUsesInBody
-