Example usage for org.eclipse.jdt.internal.compiler.ast AssertStatement AssertStatement

List of usage examples for org.eclipse.jdt.internal.compiler.ast AssertStatement AssertStatement

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.ast AssertStatement AssertStatement.

Prototype

public AssertStatement(Expression exceptionArgument, Expression assertExpression, int startPosition) 

Source Link

Usage

From source file:org.eclipse.jdt.internal.compiler.parser.Parser.java

License:Open Source License

protected void consumeAssertStatement() {
    // AssertStatement ::= 'assert' Expression ':' Expression ';'
    this.expressionLengthPtr -= 2;
    pushOnAstStack(new AssertStatement(this.expressionStack[this.expressionPtr--],
            this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--]));
}