Class AbstractJavaParserContext<N extends Node>

    • Field Detail

      • wrappedNode

        protected N extends Node wrappedNode
    • Constructor Detail

      • AbstractJavaParserContext

        public AbstractJavaParserContext​(N wrappedNode,
                                         TypeSolver typeSolver)
    • Method Detail

      • isQualifiedName

        protected static boolean isQualifiedName​(java.lang.String name)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getParent

        public final java.util.Optional<Context> getParent()
        Specified by:
        getParent in interface Context
        Returns:
        The parent context, if there is one. For example, a method exists within a compilation unit.
      • getScope

        protected Node getScope​(Node node)
      • solveWithAsValue

        protected java.util.Optional<Value> solveWithAsValue​(SymbolDeclarator symbolDeclarator,
                                                             java.lang.String name)
      • solveMethodAsUsage

        public java.util.Optional<MethodUsage> solveMethodAsUsage​(java.lang.String name,
                                                                  java.util.List<ResolvedType> argumentsTypes)
        Similar to solveMethod but we return a MethodUsage. A MethodUsage corresponds to a MethodDeclaration plus the resolved type variables.
        Specified by:
        solveMethodAsUsage in interface Context
      • getWrappedNode

        public N getWrappedNode()
        Description copied from interface: Context
        Returns the node wrapped in the context
        Specified by:
        getWrappedNode in interface Context