Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTArraySubscriptExpression

All Superinterfaces:
IASTExpression, IASTNode

public interface IASTArraySubscriptExpression
extends IASTExpression

This interface represents a postfix array subscript expression. x[ 10 ] y.z()[ t * t ]


Field Summary
static ASTNodeProperty ARRAY
          Node property that describes the relationship between an IASTArraySubscriptExpression and an IASTExpression representing the subscript.
static ASTNodeProperty SUBSCRIPT
          Node property that describes the relationship between an IASTArraySubscriptExpression and an IASTExpression representing the array.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTExpression
EMPTY_EXPRESSION_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTExpression getArrayExpression()
          Get the expression that represents the array.
 IASTExpression getSubscriptExpression()
          Get the subscript expression.
 void setArrayExpression(IASTExpression expression)
          Set the expression that represents the array.
 void setSubscriptExpression(IASTExpression expression)
          Set the subscript expression.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

ARRAY

static final ASTNodeProperty ARRAY
Node property that describes the relationship between an IASTArraySubscriptExpression and an IASTExpression representing the subscript.


SUBSCRIPT

static final ASTNodeProperty SUBSCRIPT
Node property that describes the relationship between an IASTArraySubscriptExpression and an IASTExpression representing the array.

Method Detail

getArrayExpression

IASTExpression getArrayExpression()
Get the expression that represents the array.

Returns:
IASTExpression that represents the array.

setArrayExpression

void setArrayExpression(IASTExpression expression)
Set the expression that represents the array.

Parameters:
expression - IASTExpression to be set.

getSubscriptExpression

IASTExpression getSubscriptExpression()
Get the subscript expression.

Returns:
IASTExpression that represents the subscript.

setSubscriptExpression

void setSubscriptExpression(IASTExpression expression)
Set the subscript expression.

Parameters:
expression - IASTExpression to be set.

Eclipse CDT
Pre-release 3.0

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