- Type Parameters:
M- Model type to output.T- Tree type to convert.
- All Known Implementing Classes:
AnnotationUseMapper,ArrayDeclarationMapper,BinaryMapper,BlockMapper,CaseLabelMapper,CaseMapper,CastMapper,CatchMapper,ClassMapper,CompilationUnitMapper,ExpressionMapper,IdentifierMapper,ImportMapper,InstanceofMapper,LambdaMapper,LiteralMapper,MemberReferenceMapper,MemberSelectMapper,MethodBodyMapper,MethodInvocationMapper,MethodMapper,ModifiersMapper,NameMapper,NewClassMapper,PackageMapper,PatternMapper,StatementMapper,StaticInitializerMethodMapper,TryMapper,TypeArgumentsMapper,TypeMapper,TypeParameterMapper,UnaryMapper,VariableMapper
Outlines the conversion of a javac tree element to our own model alternative.
- Author:
- Matt Coley
-
Method Summary
Modifier and TypeMethodDescriptionmap(MappingContext context, com.sun.tools.javac.tree.EndPosTable table, T tree) Maps the given tree into our own model format.
-
Method Details
-
map
@Nonnull M map(@Nonnull MappingContext context, @Nonnull com.sun.tools.javac.tree.EndPosTable table, @Nonnull T tree) Maps the given tree into our own model format.- Parameters:
context- Mapping context to do additional work within.table- Table to lookup tree positions within.tree- Tree to map.- Returns:
- Model representation of the tree.
-