Interface ICodeMetadata

    • Method Detail

      • getClosestUp

        @Nullable
        @Nullable ICodeAnnotation getClosestUp​(int position)
      • searchUp

        @Nullable
        <T> T searchUp​(int startPos,
                       java.util.function.BiFunction<java.lang.Integer,​ICodeAnnotation,​T> visitor)
        Iterate code annotations from startPos to smaller positions.
        Parameters:
        visitor - return not null value to stop iterations
      • searchDown

        @Nullable
        <T> T searchDown​(int startPos,
                         java.util.function.BiFunction<java.lang.Integer,​ICodeAnnotation,​T> visitor)
        Iterate code annotations from startPos to higher positions.
        Parameters:
        visitor - return not null value to stop iterations
      • getNodeAt

        @Nullable
        @Nullable ICodeNodeRef getNodeAt​(int position)
        Get current node at position (can be enclosing class or method)
      • getNodeBelow

        @Nullable
        @Nullable ICodeNodeRef getNodeBelow​(int position)
        Any definition of class or method below position
      • getLineMapping

        java.util.Map<java.lang.Integer,​java.lang.Integer> getLineMapping()