Package com.jogamp.gluegen.cgram.types
Class PointerType
java.lang.Object
com.jogamp.gluegen.cgram.types.Type
com.jogamp.gluegen.cgram.types.PointerType
- All Implemented Interfaces:
ASTLocusTag.ASTLocusTagProvider,TypeComparator.SemanticEqualityOp,Cloneable
-
Field Summary
Fields inherited from class com.jogamp.gluegen.cgram.types.Type
relaxedEqSem -
Constructor Summary
ConstructorsConstructorDescriptionPointerType(SizeThunk size, Type targetType, int cvAttributes) PointerType(SizeThunk size, Type targetType, int cvAttributes, ASTLocusTag astLocus) -
Method Summary
Modifier and TypeMethodDescriptionfinal PointerTypeCasts this to a PointerType or returns null if not a PointerType.protected booleanequalSemanticsImpl(Type arg) protected booleanequalsImpl(Type arg) final TypeHelper method to returns the bottom-most element type of this type.getCName(boolean includeCVAttrs) Returns the name of this type, optionally including const/volatile attributes.getName(boolean includeCVAttrs) Returns the name of this type, optionally including const/volatile attributes.final TypeHelper method to returns the target type of this type, in case another type is being referenced.protected intprotected intbooleanisAnon()final booleanConvenience routine indicating whether this Type is a pointer to a function.final intHelper method for determining how many pointer indirections this type represents (i.e., "void **" returns 2).toString()Returns a string representation of this type.For use only when printing function pointers.voidvisit(TypeVisitor arg) Traverse thisTypeand all of its component types; for example, the return type and argument types of a FunctionType.Methods inherited from class com.jogamp.gluegen.cgram.types.Type
arrayDimension, asArray, asBit, asCompound, asDouble, asEnum, asFloat, asFunction, asInt, asVoid, clearCache, clone, equals, equalSemantics, getASTLocusTag, getCName, getCVAttributes, getCVAttributesString, getDebugString, getName, getSize, getSize, hashCode, hashCodeSemantics, isArray, isBaseTypeConst, isBit, isCompound, isConst, isDouble, isEnum, isFloat, isFunction, isInt, isPointer, isPrimitive, isTypedef, isVoid, isVolatile, newCVVariant, setTypedefName
-
Constructor Details
-
PointerType
-
PointerType
-
-
Method Details
-
hashCodeImpl
protected int hashCodeImpl()- Specified by:
hashCodeImplin classType
-
equalsImpl
- Specified by:
equalsImplin classType
-
hashCodeSemanticsImpl
protected int hashCodeSemanticsImpl()- Specified by:
hashCodeSemanticsImplin classType
-
equalSemanticsImpl
- Specified by:
equalSemanticsImplin classType
-
isAnon
public boolean isAnon() -
getName
Description copied from class:TypeReturns the name of this type, optionally including const/volatile attributes. The returned string is suitable for use as a type specifier for Java. -
getCName
Description copied from class:TypeReturns the name of this type, optionally including const/volatile attributes. The returned string is suitable for use as a type specifier for native C. -
asPointer
Description copied from class:TypeCasts this to a PointerType or returns null if not a PointerType. -
getTargetType
Description copied from class:TypeHelper method to returns the target type of this type, in case another type is being referenced.- Overrides:
getTargetTypein classType
-
getBaseElementType
Description copied from class:TypeHelper method to returns the bottom-most element type of this type.If this is a multidimensional array or pointer method returns the bottom-most element type, otherwise this.
- Overrides:
getBaseElementTypein classType
-
isFunctionPointer
public final boolean isFunctionPointer()Description copied from class:TypeConvenience routine indicating whether this Type is a pointer to a function.- Overrides:
isFunctionPointerin classType
-
pointerDepth
public final int pointerDepth()Description copied from class:TypeHelper method for determining how many pointer indirections this type represents (i.e., "void **" returns 2). Returns 0 if this type is not a pointer type.- Overrides:
pointerDepthin classType
-
toString
Description copied from class:TypeReturns a string representation of this type. The returned string is suitable for use as a type specifier for native C. It does contain an expanded description of structs/unions, hence may not be suitable for type declarations. -
toString
For use only when printing function pointers. Calling convention string (i.e., "__stdcall") is optional and is generally only needed on Windows. -
visit
Description copied from class:TypeTraverse thisTypeand all of its component types; for example, the return type and argument types of a FunctionType.
-