Interface IPrototypeItem
- All Superinterfaces:
ICodeItem,ICodePrototype,ICodeType,INativeItem,INativeItemListenable,INativeType
A native prototype.
A prototype item contains return- and parameter types, calling convention, as well as other calling convention attributes.
Note: a reference-item to a prototype-item is a function-pointer type.
-
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 TypeMethodDescriptionRetrieve the optional calling convention associated with the prototype.intintList<? extends INativeType>Retrieve the prototype attributes.List<? extends INativeType>booleanConvenience method.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeItem
getAddress, getAddress, getGenericFlags, getIndex, getItemId, getName, getName, getSignature, getSignature, getSignature, isArtificial, isInternalMethods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodePrototype
isVariableArgumentMethods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodeType
getImplementingClassMethods 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, setNameMethods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItemListenable
addListener, removeListenerMethods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.type.INativeType
getBitsize, getReference, getSize, getTypeManager
-
Method Details
-
getCountOfReturns
int getCountOfReturns() -
getReturnType
INativeType getReturnType()- Specified by:
getReturnTypein interfaceICodePrototype- Returns:
- the return type, never null
-
getReturnTypes
List<? extends INativeType> getReturnTypes() -
getCountOfParameters
int getCountOfParameters() -
getParameterTypes
List<? extends INativeType> getParameterTypes()- Specified by:
getParameterTypesin interfaceICodePrototype- Returns:
- list of parameters, possibly empty, never null
-
getParameterNames
- Returns:
- optional parameter names, if they were provided with the prototype
-
getRoutineName
String getRoutineName()- Returns:
- optional routine name, if it was provided with the prototype
-
getCallingConvention
ICallingConvention getCallingConvention()Retrieve the optional calling convention associated with the prototype.- Returns:
-
getPrototypeAttributes
Collection<PrototypeAttribute> getPrototypeAttributes()Retrieve the prototype attributes.- Returns:
- prototype attributes, never null
-
isNoReturn
boolean isNoReturn()Convenience method.- Returns:
-