Class JavaParserTypeAdapter<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithSimpleName<T> & com.github.javaparser.ast.nodeTypes.NodeWithMembers<T>>


  • public class JavaParserTypeAdapter<T extends com.github.javaparser.ast.Node & com.github.javaparser.ast.nodeTypes.NodeWithSimpleName<T> & com.github.javaparser.ast.nodeTypes.NodeWithMembers<T>>
    extends Object
    Author:
    Federico Tomassetti
    • Constructor Detail

      • JavaParserTypeAdapter

        public JavaParserTypeAdapter​(T wrappedNode,
                                     com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
    • Method Detail

      • getPackageName

        public String getPackageName()
      • getClassName

        public String getClassName()
      • getQualifiedName

        public String getQualifiedName()
      • isAssignableBy

        public boolean isAssignableBy​(com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration other)
      • isAssignableBy

        public boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType type)
      • solveType

        @Deprecated
        public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType​(String name)
        Deprecated.
        This method is deprecated because it receives the TypesSolver as a parameter. Eventually we would like to remove all usages of TypeSolver as a parameter. Also, resolution should move out of declarations, so that they are pure declarations and the resolution should work for JavaParser, Reflection and Javassist classes in the same way and not be specific to the three implementations.
      • containerType

        public Optional<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> containerType()
      • getFieldsForDeclaredVariables

        public List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> getFieldsForDeclaredVariables()