Interface IGCCASTArrayRangeDesignator
- All Superinterfaces:
IASTNode,ICASTDesignator
GCC-specific designator that allows for shorthand array range to be specified
in a designated initializer.
struct ABC { int def[10]; } abc = { def[4...10] = 3 };
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ASTNodePropertySUSBCRIPT_CEILING_EXPRESSIONrepresents the higher value in the range of expressions.static final ASTNodePropertySUSBCRIPT_FLOOR_EXPRESSIONrepresents the lower value in the range of expressions.Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a mutable copy of the tree rooted at this node.copy(IASTNode.CopyStyle style) Returns a mutable copy of the tree rooted at this node.Get the range ceiling expression.Get the floor expression of the range.voidsetRangeCeiling(IASTExpression expression) Set the ceiling expression of the range.voidsetRangeFloor(IASTExpression expression) Set the floor expression of the range.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
-
Field Details
-
SUBSCRIPT_FLOOR_EXPRESSION
SUSBCRIPT_FLOOR_EXPRESSIONrepresents the lower value in the range of expressions. -
SUBSCRIPT_CEILING_EXPRESSION
SUSBCRIPT_CEILING_EXPRESSIONrepresents the higher value in the range of expressions.
-
-
Method Details
-
getRangeFloor
IASTExpression getRangeFloor()Get the floor expression of the range.- Returns:
- the floor expression
IASTExpression
-
setRangeFloor
Set the floor expression of the range.- Parameters:
expression-IASTExpression
-
getRangeCeiling
IASTExpression getRangeCeiling()Get the range ceiling expression.- Returns:
IASTExpression
-
setRangeCeiling
Set the ceiling expression of the range.- Parameters:
expression-IASTExpression
-
copy
IGCCASTArrayRangeDesignator copy()Description copied from interface:IASTNodeReturns a mutable copy of the tree rooted at this node. The following postconditions hold:copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false
Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.Calling this method is equivalent to
copy(CopyStyle.withoutLocations).- Specified by:
copyin interfaceIASTNode- Specified by:
copyin interfaceICASTDesignator- Since:
- 5.1
-
copy
Description copied from interface:IASTNodeReturns a mutable copy of the tree rooted at this node. The following postconditions hold:copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false
Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.- Specified by:
copyin interfaceIASTNode- Specified by:
copyin interfaceICASTDesignator- Parameters:
style-IASTNode.CopyStylecreate a copy with or without locations. Please seeIASTNode.CopyStylefor restrictions on copies with Locations.- Since:
- 5.3
-