Package jadx.api.metadata.impl
Class CodeMetadataStorage
java.lang.Object
jadx.api.metadata.impl.CodeMetadataStorage
- All Implemented Interfaces:
ICodeMetadata
-
Field Summary
FieldsFields inherited from interface jadx.api.metadata.ICodeMetadata
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCodeMetadataStorage(Map<Integer, Integer> lines, NavigableMap<Integer, ICodeAnnotation> navMap) -
Method Summary
Modifier and TypeMethodDescriptionstatic ICodeMetadatastatic ICodeMetadataempty()getAsMap()getAt(int position) @Nullable ICodeAnnotationgetClosestUp(int position) getNodeAt(int position) Get current node at position (can be enclosing class or method)getNodeBelow(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.toString()
-
Field Details
-
lines
-
-
Constructor Details
-
Method Details
-
build
-
empty
-
getAt
- Specified by:
getAtin interfaceICodeMetadata
-
getClosestUp
- Specified by:
getClosestUpin interfaceICodeMetadata
-
searchUp
- Specified by:
searchUpin interfaceICodeMetadata
-
searchUp
@Nullable public @Nullable ICodeAnnotation searchUp(int position, int limitPos, ICodeAnnotation.AnnType annType) - Specified by:
searchUpin interfaceICodeMetadata
-
searchUp
Description copied from interface:ICodeMetadataIterate code annotations fromstartPosto smaller positions.- Specified by:
searchUpin interfaceICodeMetadata- Parameters:
visitor- return not null value to stop iterations
-
searchDown
Description copied from interface:ICodeMetadataIterate code annotations fromstartPosto higher positions.- Specified by:
searchDownin interfaceICodeMetadata- Parameters:
visitor- return not null value to stop iterations
-
getNodeAt
Description copied from interface:ICodeMetadataGet current node at position (can be enclosing class or method)- Specified by:
getNodeAtin interfaceICodeMetadata
-
getNodeBelow
Description copied from interface:ICodeMetadataAny definition of class or method below position- Specified by:
getNodeBelowin interfaceICodeMetadata
-
getAsMap
- Specified by:
getAsMapin interfaceICodeMetadata
-
getLineMapping
- Specified by:
getLineMappingin interfaceICodeMetadata
-
toString
-