org.eclipse.cdt.core.dom.ast
Interface IASTFieldDeclarator
- All Superinterfaces:
- IASTDeclarator, IASTNameOwner, IASTNode
- public interface IASTFieldDeclarator
- extends IASTDeclarator
This represents a field in a struct. This allows for the specification of
size for a bit field.
Field Summary |
static ASTNodeProperty |
FIELD_SIZE
FIELD_SIZE represents the relationship between a
IASTFieldDeclarator and its IASTExpression . |
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode |
accept, contains, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent |
FIELD_SIZE
public static final ASTNodeProperty FIELD_SIZE
FIELD_SIZE
represents the relationship between a
IASTFieldDeclarator
and its IASTExpression
.
getBitFieldSize
public IASTExpression getBitFieldSize()
- This returns the number of bits if this is a bit field. If it is not a
bit field, it returns null.
- Returns:
- size of bit field or null.
setBitFieldSize
public void setBitFieldSize(IASTExpression size)
- Set the bitfield size.
- Parameters:
size
- IASTExpression
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.