- All Superinterfaces:
ASTNode,SizeableNode,TypeNode
GNU C language reference 6.6 Referring to a Type with typeof
Another way to refer to the type of an expression is with typeof. The syntax
of using of this keyword looks like sizeof, but the construct acts
semantically like a type name defined with typedef.
There are two ways of writing the argument to typeof: with an expression or
with a type. Here is an example with an expression:
typeof (x[0](1)) This assumes that x is an array of pointers to functions;
the type described is that of the values of the functions.
Here is an example with a typename as the argument:
typeof (int *) Here the type described is that of pointers to int.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.ASTNode
ASTNode.NodeKindNested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.type.TypeNode
TypeNode.TypeNodeKind -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from interface dev.civl.abc.ast.node.IF.ASTNode
addAllTransformAnnotations, addTransformAnnotation, child, childIndex, children, diff, equiv, getAttribute, getOwner, getScope, getSource, id, keepOnly, nextDFS, nodeKind, numChildren, parent, prettyPrint, prettyRepresentation, prettyRepresentation, print, remove, removeChild, removeTransformAnnotation, setAttribute, setChild, setId, setOwner, setScope, toString, transformAnnotationsMethods inherited from interface dev.civl.abc.ast.node.IF.type.TypeNode
copy, getType, isAtomicQualified, isConstQualified, isInputQualified, isOutputQualified, isRestrictQualified, isVolatileQualified, kind, setAtomicQualified, setConstQualified, setInputQualified, setOutputQualified, setRestrictQualified, setType, setVolatileQualified
-
Method Details
-
hasExpressionOperand
boolean hasExpressionOperand() -
getExpressionOperand
ExpressionNode getExpressionOperand() -
getTypeOperand
TypeNode getTypeOperand()
-