1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Add JavaDoc.

Formatted public interfaces.
Restructured some public interfaces.
This commit is contained in:
John Camelon 2005-03-12 19:28:27 +00:00
parent c0a8eb9c01
commit 3e9255da5f
3 changed files with 64 additions and 11 deletions

View file

@ -14,12 +14,34 @@ import org.eclipse.cdt.core.dom.ast.IASTCompoundStatement;
import org.eclipse.cdt.core.dom.ast.IASTExpression;
/**
* There are GNU language extensions that apply to both GCC and G++. Compound
* statement's as expressions.
*
* @author jcamelon
*/
public interface IGNUASTCompoundStatementExpression extends IASTExpression {
public static final ASTNodeProperty STATEMENT = new ASTNodeProperty( "Statement"); //$NON-NLS-1$
public IASTCompoundStatement getCompoundStatement();
public void setCompoundStatement( IASTCompoundStatement statement );
/**
* <code>STATEMENT</code> describes the relationship between
* <code>IGNUASTCompoundStatementExpression</code> and
* <code>IASTCompoundStatement</code>.
*/
public static final ASTNodeProperty STATEMENT = new ASTNodeProperty(
"Statement"); //$NON-NLS-1$
/**
* Get the compound statement.
*
* @return <code>IASTCompoundStatement</code>
*/
public IASTCompoundStatement getCompoundStatement();
/**
* Set the compound statement.
*
* @param statement
* <code>IASTCompoundStatement</code>
*/
public void setCompoundStatement(IASTCompoundStatement statement);
}

View file

@ -12,12 +12,27 @@ package org.eclipse.cdt.core.dom.ast.gnu;
import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression;
/**
* There are GNU language extensions that apply to both GCC and G++. Unary
* expressions for _alignOf() and typeof() along the lines of sizeof().
*
* @author jcamelon
*/
public interface IGNUASTTypeIdExpression extends IASTTypeIdExpression {
public static final int op_typeof = IASTTypeIdExpression.op_last + 1;
public static final int op_alignof = IASTTypeIdExpression.op_last + 2;
public static final int op_last = op_alignof;
/**
* <code>op_typeof</code> is used for typeof( typeId ) type expressions.
*/
public static final int op_typeof = IASTTypeIdExpression.op_last + 1;
/**
* <code>op_alignOf</code> is used for __alignOf( typeId ) type
* expressions.
*/
public static final int op_alignof = IASTTypeIdExpression.op_last + 2;
/**
* <code>op_last</code> is available for sub-interfaces.
*/
public static final int op_last = op_alignof;
}

View file

@ -12,11 +12,27 @@ package org.eclipse.cdt.core.dom.ast.gnu;
import org.eclipse.cdt.core.dom.ast.IASTUnaryExpression;
/**
* There are GNU language extensions that apply to both GCC and G++. Unary
* expressions for _alignOf() and typeof() along the lines of sizeof().
*
* @author jcamelon
*/
public interface IGNUASTUnaryExpression extends IASTUnaryExpression {
public static final int op_typeof = IASTUnaryExpression.op_last + 1;
public static final int op_alignOf = IASTUnaryExpression.op_last + 2;
public static final int op_last = op_alignOf;
/**
* <code>op_typeof</code> is used for typeof( unaryExpression ) type
* expressions.
*/
public static final int op_typeof = IASTUnaryExpression.op_last + 1;
/**
* <code>op_alignOf</code> is used for __alignOf( unaryExpression ) type
* expressions.
*/
public static final int op_alignOf = IASTUnaryExpression.op_last + 2;
/**
* <code>op_last</code> is available for sub-interfaces.
*/
public static final int op_last = op_alignOf;
}