Package util.demangler
Class GenericDemangledFunctionPointer
- java.lang.Object
-
- util.demangler.GenericDemangledType
-
- util.demangler.GenericDemangledDataType
-
- util.demangler.GenericDemangledFunctionPointer
-
- All Implemented Interfaces:
ParameterReceiver
public class GenericDemangledFunctionPointer extends GenericDemangledDataType implements ParameterReceiver
A class to represent a demangled function pointer.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcallingConvention-
Fields inherited from class util.demangler.GenericDemangledDataType
access, ARR_NOTATION, ARRAY_SUBSCRIPT_PATTERN, basedAttribute, BOOL, CHAR, CLASS, COCLASS, COINTERFACE, COMPLEX, CONST, DOUBLE, ENUM, FAR, FLOAT, FLOAT128, INT, INT0_T, INT128, INT64, isArray, isClass, isCoclass, isCointerface, isComplex, isEnum, isFar, isPointer64, isReference, isRestrict, isSigned, isStatic, isStruct, isTemplate, isUnaligned, isUnion, isUnsigned, isVarArgs, isVolatile, LONG, LONG_DOUBLE, LONG_LONG, memberScope, pointerLevels, PRIMITIVES, PTR_NOTATION, PTR64, REF_NOTATION, RESTRICT, SHORT, SIGNED, SPACE, STRING, STRUCT, UNALIGNED, UNION, UNSIGNED, VARARGS, VOID, VOLATILE, WCHAR_T
-
-
Constructor Summary
Constructors Constructor Description GenericDemangledFunctionPointer()Constructs a new demangled function pointer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(GenericDemangledDataType parameter)Adds a parameters to the end of the parameter list for this demangled function.voidclearPointer64()GenericDemangledDataTypecopy()voidcopyInto(GenericDemangledDataType destination)java.lang.StringgetCallingConvention()Returns the calling convention or null, if unspecified.intgetID()java.util.List<GenericDemangledDataType>getParameters()Returns a list of the parameters for this demangled functions.java.lang.StringgetParentName()GenericDemangledDataTypegetReturnType()Returns the return type.booleanisConstPointer()booleanisTrailingPointer64()voidsetCallingConvention(java.lang.String callingConvention)Sets the function calling convention.voidsetConstPointer()voidsetParentName(java.lang.String parentName)voidsetReturnType(GenericDemangledDataType returnType)Sets the return type.voidsetTrailingPointer64()java.lang.StringtoSignature()java.lang.StringtoSignature(java.lang.String name)-
Methods inherited from class util.demangler.GenericDemangledDataType
copyInto, getAccess, getBasedName, getMemberScope, getPointerLevels, incrementPointerLevels, isArray, isClass, isCoclass, isCointerface, isComplex, isEnum, isFar, isPointer, isPointer64, isPrimitive, isReference, isRestrict, isSigned, isStatic, isStruct, isTemplate, isUnaligned, isUnion, isUnsigned, isVarArgs, isVoid, isVolatile, setAccess, setArray, setBasedName, setClass, setCoclass, setCointerface, setComplex, setEnum, setFar, setMemberScope, setPointer64, setPointerLevels, setReference, setRestrict, setSigned, setStatic, setStruct, setTemplate, setUnaligned, setUnion, setUnsigned, setVarArgs, setVolatile, toString
-
Methods inherited from class util.demangler.GenericDemangledType
getName, getNamespace, getTemplate, isConst, setConst, setName, setNamespace, setTemplate, toNamespace
-
-
-
-
Method Detail
-
getReturnType
public GenericDemangledDataType getReturnType()
Returns the return type.- Returns:
- the return type
-
setReturnType
public void setReturnType(GenericDemangledDataType returnType)
Sets the return type.- Parameters:
returnType- the return type
-
getCallingConvention
public java.lang.String getCallingConvention()
Returns the calling convention or null, if unspecified.- Returns:
- the calling convention or null, if unspecified
-
setCallingConvention
public void setCallingConvention(java.lang.String callingConvention)
Sets the function calling convention. For example, "__cdecl".- Parameters:
callingConvention- the function calling convention
-
addParameter
public void addParameter(GenericDemangledDataType parameter)
Adds a parameters to the end of the parameter list for this demangled function.- Specified by:
addParameterin interfaceParameterReceiver- Parameters:
parameter- the new parameter to add
-
getParameters
public java.util.List<GenericDemangledDataType> getParameters()
Returns a list of the parameters for this demangled functions.- Specified by:
getParametersin interfaceParameterReceiver- Returns:
- a list of the parameters for this demangled functions
-
copy
public GenericDemangledDataType copy()
- Overrides:
copyin classGenericDemangledDataType
-
copyInto
public void copyInto(GenericDemangledDataType destination)
- Overrides:
copyIntoin classGenericDemangledDataType
-
toSignature
public java.lang.String toSignature()
- Overrides:
toSignaturein classGenericDemangledDataType
-
toSignature
public java.lang.String toSignature(java.lang.String name)
-
setConstPointer
public void setConstPointer()
-
isConstPointer
public boolean isConstPointer()
-
setParentName
public void setParentName(java.lang.String parentName)
-
getParentName
public java.lang.String getParentName()
-
setTrailingPointer64
public void setTrailingPointer64()
-
isTrailingPointer64
public boolean isTrailingPointer64()
-
clearPointer64
public void clearPointer64()
-
getID
public int getID()
-
-