Package com.bacoder.parser.java.api

Examples of com.bacoder.parser.java.api.AssertStatement


          }
        });
  }

  protected AssertStatement processAssertStatement(StatementContext context) {
    AssertStatement assertStatement = createNode(context, AssertStatement.class);

    List<ExpressionContext> expressionContexts = getChildren(context, ExpressionContext.class);
    if (expressionContexts.size() > 0) {
      assertStatement.setExpression(
          getAdapter(ExpressionAdapter.class).adapt(expressionContexts.get(0)));
    }

    if (expressionContexts.size() > 1) {
      assertStatement.setErrorMessage(
          getAdapter(ExpressionAdapter.class).adapt(expressionContexts.get(1)));
    }

    return assertStatement;
  }
View Full Code Here

TOP

Related Classes of com.bacoder.parser.java.api.AssertStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.