Package jadx.api.metadata
Interface ICodeMetadata
-
- All Known Implementing Classes:
CodeMetadataStorage
public interface ICodeMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static ICodeMetadataEMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,ICodeAnnotation>getAsMap()@Nullable ICodeAnnotationgetAt(int position)@Nullable ICodeAnnotationgetClosestUp(int position)java.util.Map<java.lang.Integer,java.lang.Integer>getLineMapping()@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, java.util.function.BiFunction<java.lang.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, java.util.function.BiFunction<java.lang.Integer,ICodeAnnotation,T> visitor)Iterate code annotations fromstartPosto smaller positions.
-
-
-
Field Detail
-
EMPTY
static final ICodeMetadata EMPTY
-
-
Method Detail
-
getAt
@Nullable @Nullable ICodeAnnotation getAt(int position)
-
getClosestUp
@Nullable @Nullable ICodeAnnotation getClosestUp(int position)
-
searchUp
@Nullable @Nullable ICodeAnnotation searchUp(int position, ICodeAnnotation.AnnType annType)
-
searchUp
@Nullable @Nullable ICodeAnnotation searchUp(int position, int limitPos, ICodeAnnotation.AnnType annType)
-
searchUp
@Nullable <T> T searchUp(int startPos, java.util.function.BiFunction<java.lang.Integer,ICodeAnnotation,T> visitor)Iterate code annotations fromstartPosto 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 fromstartPosto 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
-
getAsMap
java.util.Map<java.lang.Integer,ICodeAnnotation> getAsMap()
-
getLineMapping
java.util.Map<java.lang.Integer,java.lang.Integer> getLineMapping()
-
-