Interface INativeClassItem
- All Superinterfaces:
ICodeClass
,ICodeItem
,INativeItem
,INativeItemListenable
Definition of a native class item, having a class type, methods, fields, and so on.
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_ANONYMOUS, FLAG_ARTIFICIAL, FLAG_BRIDGE, FLAG_CONSTRUCTOR, FLAG_DECLARED_SYNCHRONIZED, FLAG_DESTRUCTOR, FLAG_ENUM, FLAG_FINAL, FLAG_INNER, FLAG_INTERFACE, FLAG_INTERNAL, FLAG_NATIVE, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STRICT, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_VARARGS, FLAG_VIRTUAL, FLAG_VOLATILE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
collectVirtualMethodOverrides
(INativeMethodItem method, Collection<INativeMethodItem> overUp, Collection<INativeMethodItem> overDown) Get the optional type implemented by this class item.List<? extends INativeMethodItem>
List<? extends INativeMethodItem>
List<? extends INativeFieldItem>
Get the list of fields that are defined in this class (super fields are not returned).List<? extends IClassType>
Get the list of implemented interface types for this class.List<? extends INativeFieldItem>
List<? extends INativeMethodItem>
Get the instance methods defined in this class.List<? extends INativeMethodItem>
Get the list of methods that are defined in this class (super methods are not returned).List<? extends INativeMethodItem>
Get the non-virtual, non-static methods of this class.List<? extends INativeFieldItem>
List<? extends INativeMethodItem>
Get the static methods of this class.List<? extends INativeType>
List<? extends IClassType>
Get the list of super types for this class.getVirtualMethodFromCoordinates
(int tableIndex, int methodIndex) List<? extends INativeMethodItem>
getVirtualMethods
(boolean onlyDefinedInThisClass) Get the virtual methods of this class, including or not the virtual methods defined in parent classes that were not overridden (and therefore, indirectly belonging to this class as well).List<? extends IMethodTable>
boolean
renameVirtualMethod
(INativeMethodItem method, String name) Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeClass
getPackage
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
getAddress, getAddress, getGenericFlags, getIndex, getItemId, getName, getName, getSignature, getSignature, getSignature, isArtificial, isInternal
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItem
addFlags, dispose, getAttribute, getAttributes, hasAttribute, hasFlag, hasTrueAttribute, isAutoGenerated, isDisposed, isRenamed, removeAttribute, removeFlags, setAttribute, setAutoGenerated, setFlags, setName
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItemListenable
addListener, removeListener
-
Method Details
-
getClassType
IClassType getClassType()Description copied from interface:ICodeClass
Get the optional type implemented by this class item.- Specified by:
getClassType
in interfaceICodeClass
- Returns:
-
getSupertypes
List<? extends IClassType> getSupertypes()Description copied from interface:ICodeClass
Get the list of super types for this class.- Specified by:
getSupertypes
in interfaceICodeClass
- Returns:
-
getImplementedInterfaces
List<? extends IClassType> getImplementedInterfaces()Description copied from interface:ICodeClass
Get the list of implemented interface types for this class.- Specified by:
getImplementedInterfaces
in interfaceICodeClass
- Returns:
-
getMethods
List<? extends INativeMethodItem> getMethods()Description copied from interface:ICodeClass
Get the list of methods that are defined in this class (super methods are not returned).- Specified by:
getMethods
in interfaceICodeClass
- Returns:
- a list of methods, possibly empty if this class has no implementation
-
getFields
List<? extends INativeFieldItem> getFields()Description copied from interface:ICodeClass
Get the list of fields that are defined in this class (super fields are not returned).- Specified by:
getFields
in interfaceICodeClass
- Returns:
- a list of fields, possibly empty if this class has no implementation
-
getSubtypes
List<? extends INativeType> getSubtypes() -
getVirtualTables
List<? extends IMethodTable> getVirtualTables() -
getVirtualMethods
Get the virtual methods of this class, including or not the virtual methods defined in parent classes that were not overridden (and therefore, indirectly belonging to this class as well).- Parameters:
onlyDefinedInThisClass
-- Returns:
-
getNonVirtualMethods
List<? extends INativeMethodItem> getNonVirtualMethods()Get the non-virtual, non-static methods of this class.- Returns:
-
getStaticMethods
List<? extends INativeMethodItem> getStaticMethods()Get the static methods of this class.- Returns:
-
getInstanceMethods
List<? extends INativeMethodItem> getInstanceMethods()Get the instance methods defined in this class. (Virtual methods defined in parent classes are not included.) Not all instance methods may be virtual.- Returns:
-
getConstructors
List<? extends INativeMethodItem> getConstructors() -
getDestructors
List<? extends INativeMethodItem> getDestructors() -
getInstanceFields
List<? extends INativeFieldItem> getInstanceFields() -
getStaticFields
List<? extends INativeFieldItem> getStaticFields() -
getVirtualMethodFromCoordinates
-
getCoordinatesOfVirtualMethod
-
renameVirtualMethod
-
collectVirtualMethodOverrides
boolean collectVirtualMethodOverrides(INativeMethodItem method, Collection<INativeMethodItem> overUp, Collection<INativeMethodItem> overDown)
-