Package jadx.api
Class JavaClass
- java.lang.Object
-
- jadx.api.JavaClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecompile()booleanequals(java.lang.Object o)AccessInfogetAccessInfo()ICodeAnnotationgetAnnotationAt(int pos)ClassNodegetClassNode()Internal API.java.lang.StringgetCode()@NotNull ICodeInfogetCodeInfo()ICodeNodeRefgetCodeNodeRef()@Nullable JavaClassgetCodeParent()Return parent class which contains code of this class.JavaClassgetDeclaringClass()intgetDefPos()java.util.List<JavaClass>getDependencies()java.util.List<JavaField>getFields()java.lang.StringgetFullName()java.util.List<JavaClass>getInlinedClasses()java.util.List<JavaClass>getInnerClasses()JavaPackagegetJavaPackage()java.util.List<JavaMethod>getMethods()java.lang.StringgetName()JavaClassgetOriginalTopParentClass()java.lang.StringgetPackage()java.lang.StringgetRawName()java.lang.StringgetSmali()java.lang.IntegergetSourceLine(int decompiledLine)JavaClassgetTopParentClass()Return top parent class which contains code of this class.intgetTotalDepsCount()java.util.Map<java.lang.Integer,JavaNode>getUsageMap()java.util.List<JavaNode>getUseIn()java.util.List<java.lang.Integer>getUsePlacesFor(ICodeInfo codeInfo, JavaNode javaNode)inthashCode()booleanisInner()booleanisNoCode()booleanisOwnCodeAnnotation(ICodeAnnotation ann)ICodeInforeload()voidremoveAlias()@Nullable JavaMethodsearchMethodByShortId(java.lang.String shortId)java.lang.StringtoString()voidunload()
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
-
getCodeInfo
@NotNull public @NotNull ICodeInfo getCodeInfo()
-
decompile
public void decompile()
-
reload
public ICodeInfo reload()
-
unload
public void unload()
-
isNoCode
public boolean isNoCode()
-
isInner
public boolean isInner()
-
getSmali
public java.lang.String getSmali()
-
isOwnCodeAnnotation
public boolean isOwnCodeAnnotation(ICodeAnnotation ann)
- Specified by:
isOwnCodeAnnotationin interfaceJavaNode
-
getCodeNodeRef
public ICodeNodeRef getCodeNodeRef()
- Specified by:
getCodeNodeRefin interfaceJavaNode
-
getClassNode
@Internal public ClassNode getClassNode()
Internal API. Not Stable!
-
getAnnotationAt
public ICodeAnnotation getAnnotationAt(int pos)
-
getUsageMap
public java.util.Map<java.lang.Integer,JavaNode> getUsageMap()
-
getUsePlacesFor
public java.util.List<java.lang.Integer> getUsePlacesFor(ICodeInfo codeInfo, JavaNode javaNode)
-
getSourceLine
public java.lang.Integer getSourceLine(int decompiledLine)
-
getFullName
public java.lang.String getFullName()
- Specified by:
getFullNamein interfaceJavaNode
-
getRawName
public java.lang.String getRawName()
-
getPackage
public java.lang.String getPackage()
-
getJavaPackage
public JavaPackage getJavaPackage()
-
getDeclaringClass
public JavaClass getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceJavaNode
-
getOriginalTopParentClass
public JavaClass getOriginalTopParentClass()
-
getTopParentClass
public JavaClass getTopParentClass()
Return top parent class which contains code of this class. Code parent can be different from original parent after move or inline- Specified by:
getTopParentClassin interfaceJavaNode- Returns:
- this if already a top class
-
getCodeParent
@Nullable public @Nullable JavaClass getCodeParent()
Return parent class which contains code of this class. Code parent can be different for original parent after move or inline
-
getAccessInfo
public AccessInfo getAccessInfo()
-
getInnerClasses
public java.util.List<JavaClass> getInnerClasses()
-
getInlinedClasses
public java.util.List<JavaClass> getInlinedClasses()
-
getFields
public java.util.List<JavaField> getFields()
-
getMethods
public java.util.List<JavaMethod> getMethods()
-
searchMethodByShortId
@Nullable public @Nullable JavaMethod searchMethodByShortId(java.lang.String shortId)
-
getDependencies
public java.util.List<JavaClass> getDependencies()
-
getTotalDepsCount
public int getTotalDepsCount()
-
removeAlias
public void removeAlias()
- Specified by:
removeAliasin interfaceJavaNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-