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.String
callingConvention
-
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 void
addParameter(GenericDemangledDataType parameter)
Adds a parameters to the end of the parameter list for this demangled function.void
clearPointer64()
GenericDemangledDataType
copy()
void
copyInto(GenericDemangledDataType destination)
java.lang.String
getCallingConvention()
Returns the calling convention or null, if unspecified.int
getID()
java.util.List<GenericDemangledDataType>
getParameters()
Returns a list of the parameters for this demangled functions.java.lang.String
getParentName()
GenericDemangledDataType
getReturnType()
Returns the return type.boolean
isConstPointer()
boolean
isTrailingPointer64()
void
setCallingConvention(java.lang.String callingConvention)
Sets the function calling convention.void
setConstPointer()
void
setParentName(java.lang.String parentName)
void
setReturnType(GenericDemangledDataType returnType)
Sets the return type.void
setTrailingPointer64()
java.lang.String
toSignature()
java.lang.String
toSignature(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:
addParameter
in 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:
getParameters
in interfaceParameterReceiver
- Returns:
- a list of the parameters for this demangled functions
-
copy
public GenericDemangledDataType copy()
- Overrides:
copy
in classGenericDemangledDataType
-
copyInto
public void copyInto(GenericDemangledDataType destination)
- Overrides:
copyInto
in classGenericDemangledDataType
-
toSignature
public java.lang.String toSignature()
- Overrides:
toSignature
in 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()
-
-