public interface BasicEnvironment2 extends BasicEnvironment
BasicEnvironment2
provides an extended environment interface
to support asymmetric as well as symmetric mappings between CST and AST.Modifier and Type | Method and Description |
---|---|
void |
initASTMapping(Object fromAstNode,
CSTNode cstNode,
Object toAstNode)
Initialize the asymmetric mapping of an object (typically an astNode) to
its originating cstNode, and of a cstNode to its consequent object
(typically an astNode) so that AST-based analysis may report error
messages exploiting the CST context, or to support incremental AST/CST
update.
|
analyzerError, analyzerError, analyzerError, analyzerWarning, getASTMapping, getFormatter, getParser, getProblemHandler, initASTMapping, lexerError, parserError, problem, setParser, setProblemHandler, utilityError, validatorError
getAdapter
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
void initASTMapping(Object fromAstNode, CSTNode cstNode, Object toAstNode)
fromAstNode
- source of the AST-to-CST mappingcstNode
- target of the AST-to-CST mapping and source of the CST-to-AST
mappingtoAstNode
- target of the CST-to-AST mappingCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.