Package util.demangler
Class GenericDemangledDataType
- java.lang.Object
-
- util.demangler.GenericDemangledType
-
- util.demangler.GenericDemangledDataType
-
- Direct Known Subclasses:
GenericDemangledArray
,GenericDemangledFunctionPointer
public class GenericDemangledDataType extends GenericDemangledType
A class to represent a demangled data type.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
access
private/protected/publicstatic java.lang.String
ARR_NOTATION
protected static java.util.regex.Pattern
ARRAY_SUBSCRIPT_PATTERN
protected java.lang.String
basedAttribute
static java.lang.String
BOOL
static java.lang.String
CHAR
static java.lang.String
CLASS
static java.lang.String
COCLASS
static java.lang.String
COINTERFACE
static java.lang.String
COMPLEX
static java.lang.String
CONST
static java.lang.String
DOUBLE
static java.lang.String
ENUM
protected static java.lang.String
FAR
static java.lang.String
FLOAT
static java.lang.String
FLOAT128
static java.lang.String
INT
static java.lang.String
INT0_T
static java.lang.String
INT128
static java.lang.String
INT64
protected boolean
isArray
protected boolean
isClass
protected boolean
isCoclass
protected boolean
isCointerface
protected boolean
isComplex
protected boolean
isEnum
protected boolean
isFar
protected boolean
isPointer64
protected boolean
isReference
protected boolean
isRestrict
protected boolean
isSigned
protected boolean
isStatic
protected boolean
isStruct
protected boolean
isTemplate
protected boolean
isUnaligned
protected boolean
isUnion
protected boolean
isUnsigned
protected boolean
isVarArgs
protected boolean
isVolatile
static java.lang.String
LONG
static java.lang.String
LONG_DOUBLE
static java.lang.String
LONG_LONG
protected java.lang.String
memberScope
protected int
pointerLevels
static java.lang.String[]
PRIMITIVES
static java.lang.String
PTR_NOTATION
static java.lang.String
PTR64
static java.lang.String
REF_NOTATION
protected static java.lang.String
RESTRICT
static java.lang.String
SHORT
static java.lang.String
SIGNED
static char
SPACE
static java.lang.String
STRING
static java.lang.String
STRUCT
static java.lang.String
UNALIGNED
static java.lang.String
UNION
static java.lang.String
UNSIGNED
static java.lang.String
VARARGS
static java.lang.String
VOID
static java.lang.String
VOLATILE
static java.lang.String
WCHAR_T
-
Constructor Summary
Constructors Constructor Description GenericDemangledDataType(java.lang.String name)
Constructs a new demangled datatype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericDemangledDataType
copy()
void
copyInto(GenericDemangledDataType destination)
void
copyInto(GenericDemangledVariable destination)
java.lang.String
getAccess()
java.lang.String
getBasedName()
java.lang.String
getMemberScope()
int
getPointerLevels()
void
incrementPointerLevels()
boolean
isArray()
boolean
isClass()
boolean
isCoclass()
boolean
isCointerface()
boolean
isComplex()
boolean
isEnum()
boolean
isFar()
boolean
isPointer()
boolean
isPointer64()
boolean
isPrimitive()
boolean
isReference()
boolean
isRestrict()
boolean
isSigned()
boolean
isStatic()
boolean
isStruct()
boolean
isTemplate()
boolean
isUnaligned()
boolean
isUnion()
boolean
isUnsigned()
boolean
isVarArgs()
boolean
isVoid()
boolean
isVolatile()
void
setAccess(java.lang.String access)
void
setArray()
void
setBasedName(java.lang.String basedName)
void
setClass()
void
setCoclass()
void
setCointerface()
void
setComplex()
void
setEnum()
void
setFar()
void
setMemberScope(java.lang.String memberScope)
void
setPointer64()
void
setPointerLevels(int levels)
void
setReference()
void
setRestrict()
void
setSigned()
void
setStatic()
void
setStruct()
void
setTemplate()
void
setUnaligned()
void
setUnion()
void
setUnsigned()
void
setVarArgs()
void
setVolatile()
java.lang.String
toSignature()
java.lang.String
toString()
-
Methods inherited from class util.demangler.GenericDemangledType
getName, getNamespace, getTemplate, isConst, setConst, setName, setNamespace, setTemplate, toNamespace
-
-
-
-
Field Detail
-
ARRAY_SUBSCRIPT_PATTERN
protected static final java.util.regex.Pattern ARRAY_SUBSCRIPT_PATTERN
-
SPACE
public static final char SPACE
- See Also:
- Constant Field Values
-
UNALIGNED
public static final java.lang.String UNALIGNED
- See Also:
- Constant Field Values
-
UNSIGNED
public static final java.lang.String UNSIGNED
- See Also:
- Constant Field Values
-
SIGNED
public static final java.lang.String SIGNED
- See Also:
- Constant Field Values
-
ARR_NOTATION
public static final java.lang.String ARR_NOTATION
- See Also:
- Constant Field Values
-
REF_NOTATION
public static final java.lang.String REF_NOTATION
- See Also:
- Constant Field Values
-
PTR_NOTATION
public static final java.lang.String PTR_NOTATION
- See Also:
- Constant Field Values
-
VOLATILE
public static final java.lang.String VOLATILE
- See Also:
- Constant Field Values
-
COMPLEX
public static final java.lang.String COMPLEX
- See Also:
- Constant Field Values
-
CLASS
public static final java.lang.String CLASS
- See Also:
- Constant Field Values
-
ENUM
public static final java.lang.String ENUM
- See Also:
- Constant Field Values
-
STRUCT
public static final java.lang.String STRUCT
- See Also:
- Constant Field Values
-
UNION
public static final java.lang.String UNION
- See Also:
- Constant Field Values
-
COCLASS
public static final java.lang.String COCLASS
- See Also:
- Constant Field Values
-
COINTERFACE
public static final java.lang.String COINTERFACE
- See Also:
- Constant Field Values
-
CONST
public static final java.lang.String CONST
- See Also:
- Constant Field Values
-
FAR
protected static final java.lang.String FAR
- See Also:
- Constant Field Values
-
RESTRICT
protected static final java.lang.String RESTRICT
- See Also:
- Constant Field Values
-
VARARGS
public static final java.lang.String VARARGS
- See Also:
- Constant Field Values
-
VOID
public static final java.lang.String VOID
- See Also:
- Constant Field Values
-
BOOL
public static final java.lang.String BOOL
- See Also:
- Constant Field Values
-
CHAR
public static final java.lang.String CHAR
- See Also:
- Constant Field Values
-
WCHAR_T
public static final java.lang.String WCHAR_T
- See Also:
- Constant Field Values
-
SHORT
public static final java.lang.String SHORT
- See Also:
- Constant Field Values
-
INT
public static final java.lang.String INT
- See Also:
- Constant Field Values
-
INT0_T
public static final java.lang.String INT0_T
- See Also:
- Constant Field Values
-
LONG
public static final java.lang.String LONG
- See Also:
- Constant Field Values
-
LONG_LONG
public static final java.lang.String LONG_LONG
- See Also:
- Constant Field Values
-
FLOAT
public static final java.lang.String FLOAT
- See Also:
- Constant Field Values
-
DOUBLE
public static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
-
INT64
public static final java.lang.String INT64
- See Also:
- Constant Field Values
-
INT128
public static final java.lang.String INT128
- See Also:
- Constant Field Values
-
FLOAT128
public static final java.lang.String FLOAT128
- See Also:
- Constant Field Values
-
LONG_DOUBLE
public static final java.lang.String LONG_DOUBLE
- See Also:
- Constant Field Values
-
PTR64
public static final java.lang.String PTR64
- See Also:
- Constant Field Values
-
STRING
public static final java.lang.String STRING
- See Also:
- Constant Field Values
-
PRIMITIVES
public static final java.lang.String[] PRIMITIVES
-
access
protected java.lang.String access
private/protected/public
-
isStatic
protected boolean isStatic
-
isArray
protected boolean isArray
-
isClass
protected boolean isClass
-
isComplex
protected boolean isComplex
-
isEnum
protected boolean isEnum
-
isPointer64
protected boolean isPointer64
-
isReference
protected boolean isReference
-
isSigned
protected boolean isSigned
-
isStruct
protected boolean isStruct
-
isTemplate
protected boolean isTemplate
-
isUnaligned
protected boolean isUnaligned
-
isUnion
protected boolean isUnion
-
isUnsigned
protected boolean isUnsigned
-
isVarArgs
protected boolean isVarArgs
-
isVolatile
protected boolean isVolatile
-
pointerLevels
protected int pointerLevels
-
isFar
protected boolean isFar
-
isRestrict
protected boolean isRestrict
-
basedAttribute
protected java.lang.String basedAttribute
-
memberScope
protected java.lang.String memberScope
-
isCoclass
protected boolean isCoclass
-
isCointerface
protected boolean isCointerface
-
-
Method Detail
-
copy
public GenericDemangledDataType copy()
-
copyInto
public void copyInto(GenericDemangledDataType destination)
-
copyInto
public void copyInto(GenericDemangledVariable destination)
-
getPointerLevels
public int getPointerLevels()
-
setPointerLevels
public void setPointerLevels(int levels)
-
incrementPointerLevels
public void incrementPointerLevels()
-
setAccess
public void setAccess(java.lang.String access)
-
getAccess
public java.lang.String getAccess()
-
setStatic
public void setStatic()
-
isStatic
public boolean isStatic()
-
setArray
public void setArray()
-
setClass
public void setClass()
-
setComplex
public void setComplex()
-
setEnum
public void setEnum()
-
setPointer64
public void setPointer64()
-
setReference
public void setReference()
-
setSigned
public void setSigned()
-
setStruct
public void setStruct()
-
setTemplate
public void setTemplate()
-
setUnion
public void setUnion()
-
setCoclass
public void setCoclass()
-
setCointerface
public void setCointerface()
-
setUnsigned
public void setUnsigned()
-
setUnaligned
public void setUnaligned()
-
isUnaligned
public boolean isUnaligned()
-
setVarArgs
public void setVarArgs()
-
setVolatile
public void setVolatile()
- Overrides:
setVolatile
in classGenericDemangledType
-
setFar
public void setFar()
-
isFar
public boolean isFar()
-
setRestrict
public void setRestrict()
-
isRestrict
public boolean isRestrict()
-
isArray
public boolean isArray()
-
isClass
public boolean isClass()
-
isComplex
public boolean isComplex()
-
isEnum
public boolean isEnum()
-
isPointer
public boolean isPointer()
-
isPointer64
public boolean isPointer64()
-
isReference
public boolean isReference()
-
isSigned
public boolean isSigned()
-
isStruct
public boolean isStruct()
-
isTemplate
public boolean isTemplate()
-
isUnion
public boolean isUnion()
-
isCoclass
public boolean isCoclass()
-
isCointerface
public boolean isCointerface()
-
isUnsigned
public boolean isUnsigned()
-
isVarArgs
public boolean isVarArgs()
-
isVoid
public boolean isVoid()
-
isVolatile
public boolean isVolatile()
- Overrides:
isVolatile
in classGenericDemangledType
-
getBasedName
public java.lang.String getBasedName()
-
setBasedName
public void setBasedName(java.lang.String basedName)
-
getMemberScope
public java.lang.String getMemberScope()
-
setMemberScope
public void setMemberScope(java.lang.String memberScope)
-
isPrimitive
public boolean isPrimitive()
-
toSignature
public java.lang.String toSignature()
- Overrides:
toSignature
in classGenericDemangledType
-
toString
public java.lang.String toString()
- Overrides:
toString
in classGenericDemangledType
-
-