Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast.gnu.c
Interface IGCCASTArrayRangeDesignator

All Superinterfaces:
IASTNode, ICASTDesignator

public interface IGCCASTArrayRangeDesignator
extends 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 };


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle
 
Field Summary
static ASTNodeProperty SUBSCRIPT_CEILING_EXPRESSION
          SUSBCRIPT_CEILING_EXPRESSION represents the higher value in the range of expressions.
static ASTNodeProperty SUBSCRIPT_FLOOR_EXPRESSION
          SUSBCRIPT_FLOOR_EXPRESSION represents the lower value in the range of expressions.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IGCCASTArrayRangeDesignator copy()
          Returns a mutable copy of the tree rooted at this node.
 IGCCASTArrayRangeDesignator copy(IASTNode.CopyStyle style)
          Returns a mutable copy of the tree rooted at this node.
 IASTExpression getRangeCeiling()
          Get the range ceiling expression.
 IASTExpression getRangeFloor()
          Get the floor expression of the range.
 void setRangeCeiling(IASTExpression expression)
          Set the ceiling expression of the range.
 void setRangeFloor(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 Detail

SUBSCRIPT_FLOOR_EXPRESSION

static final ASTNodeProperty SUBSCRIPT_FLOOR_EXPRESSION
SUSBCRIPT_FLOOR_EXPRESSION represents the lower value in the range of expressions.


SUBSCRIPT_CEILING_EXPRESSION

static final ASTNodeProperty SUBSCRIPT_CEILING_EXPRESSION
SUSBCRIPT_CEILING_EXPRESSION represents the higher value in the range of expressions.

Method Detail

getRangeFloor

IASTExpression getRangeFloor()
Get the floor expression of the range.

Returns:
the floor expression IASTExpression

setRangeFloor

void setRangeFloor(IASTExpression expression)
Set the floor expression of the range.

Parameters:
expression - IASTExpression

getRangeCeiling

IASTExpression getRangeCeiling()
Get the range ceiling expression.

Returns:
IASTExpression

setRangeCeiling

void setRangeCeiling(IASTExpression expression)
Set the ceiling expression of the range.

Parameters:
expression - IASTExpression

copy

IGCCASTArrayRangeDesignator copy()
Description copied from interface: IASTNode
Returns 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

Specified by:
copy in interface IASTNode
Specified by:
copy in interface ICASTDesignator
Since:
5.1

copy

IGCCASTArrayRangeDesignator copy(IASTNode.CopyStyle style)
Description copied from interface: IASTNode
Returns 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:
copy in interface IASTNode
Specified by:
copy in interface ICASTDesignator
Parameters:
style - IASTNode.CopyStyle create a copy with or without locations. Please see IASTNode.CopyStyle for restrictions on copies with Locations.
Since:
5.3

Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.