Example usage for org.eclipse.jdt.core.dom AST newConstructorInvocation

List of usage examples for org.eclipse.jdt.core.dom AST newConstructorInvocation

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom AST newConstructorInvocation.

Prototype

public ConstructorInvocation newConstructorInvocation() 

Source Link

Document

Creates an unparented alternate constructor ("this(...);") invocation statement node owned by this AST.

Usage

From source file:org.jboss.forge.roaster.model.impl.statements.ThisStatementImpl.java

License:Open Source License

@Override
public ConstructorInvocation materialize(AST ast) {
    if (invoke != null) {
        return invoke;
    }// w ww.j  av a2 s.com
    invoke = ast.newConstructorInvocation();

    for (Argument argument : argumentList) {
        invoke.arguments().add(wireAndGetExpression(argument, this, ast));
    }
    return invoke;
}