Package jadx.api.metadata
Interface ICodeMetadata
- All Known Implementing Classes:
CodeMetadataStorage
public interface ICodeMetadata
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAsMap()@Nullable ICodeAnnotationgetAt(int position) @Nullable ICodeAnnotationgetClosestUp(int position) @Nullable ICodeNodeRefgetNodeAt(int position) Get current node at position (can be enclosing class or method)@Nullable ICodeNodeRefgetNodeBelow(int position) Any definition of class or method below position<T> TsearchDown(int startPos, BiFunction<Integer, ICodeAnnotation, T> visitor) Iterate code annotations fromstartPosto higher positions.@Nullable ICodeAnnotationsearchUp(int position, int limitPos, ICodeAnnotation.AnnType annType) @Nullable ICodeAnnotationsearchUp(int position, ICodeAnnotation.AnnType annType) <T> TsearchUp(int startPos, BiFunction<Integer, ICodeAnnotation, T> visitor) Iterate code annotations fromstartPosto smaller positions.
-
Field Details
-
EMPTY
-
-
Method Details
-
getAt
-
getClosestUp
-
searchUp
-
searchUp
@Nullable @Nullable ICodeAnnotation searchUp(int position, int limitPos, ICodeAnnotation.AnnType annType) -
searchUp
Iterate code annotations fromstartPosto smaller positions.- Parameters:
visitor- return not null value to stop iterations
-
searchDown
Iterate code annotations fromstartPosto higher positions.- Parameters:
visitor- return not null value to stop iterations
-
getNodeAt
Get current node at position (can be enclosing class or method) -
getNodeBelow
Any definition of class or method below position -
getAsMap
Map<Integer,ICodeAnnotation> getAsMap() -
getLineMapping
-