Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.c
Interface ICASTDesignatedInitializer

All Superinterfaces:
IASTInitializer, IASTNode

public interface ICASTDesignatedInitializer
extends IASTInitializer

This interface represents a designated initializer. e.g. struct x y = { .z=4, .t[1] = 3 };


Field Summary
static ASTNodeProperty DESIGNATOR
          DESIGNATOR represents the relationship between an ICASTDesignatedInitializer and ICASTDesignator.
static ICASTDesignator[] EMPTY_DESIGNATOR_ARRAY
          Constant.
static ASTNodeProperty OPERAND
          OPERAND represents the relationship between ICASTDesignatedInitializer and its IASTInitializer.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTInitializer
EMPTY_INITIALIZER_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 void addDesignator(ICASTDesignator designator)
          Add a designator to this initializer.
 ICASTDesignator[] getDesignators()
          Get all of the designators.
 IASTInitializer getOperandInitializer()
          Get the nested initializer.
 void setOperandInitializer(IASTInitializer rhs)
          Set the nested initializer.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

EMPTY_DESIGNATOR_ARRAY

static final ICASTDesignator[] EMPTY_DESIGNATOR_ARRAY
Constant.


DESIGNATOR

static final ASTNodeProperty DESIGNATOR
DESIGNATOR represents the relationship between an ICASTDesignatedInitializer and ICASTDesignator.


OPERAND

static final ASTNodeProperty OPERAND
OPERAND represents the relationship between ICASTDesignatedInitializer and its IASTInitializer.

Method Detail

addDesignator

void addDesignator(ICASTDesignator designator)
Add a designator to this initializer.

Parameters:
designator - ICASTDesignator

getDesignators

ICASTDesignator[] getDesignators()
Get all of the designators.

Returns:
ICASTDesignator []

getOperandInitializer

IASTInitializer getOperandInitializer()
Get the nested initializer.

Returns:
IASTInitializer

setOperandInitializer

void setOperandInitializer(IASTInitializer rhs)
Set the nested initializer.

Parameters:
rhs - IASTInitializer

Eclipse CDT
Pre-release 3.0

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