Example usage for org.eclipse.jdt.core.dom MethodInvocation accept

List of usage examples for org.eclipse.jdt.core.dom MethodInvocation accept

Introduction

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

Prototype

public final void accept(ASTVisitor visitor) 

Source Link

Document

Accepts the given visitor on a visit of the current node.

Usage

From source file:org.eclipse.wb.internal.layout.group.model.GroupLayoutCodeSupport.java

License:Open Source License

private LayoutInterval parseGroup(String methodName, int dimension) {
    MethodInvocation invocation = getJavaInfo().getMethodInvocation(methodName);
    if (invocation != null) {
        GroupLayoutParserVisitor2 parser = new GroupLayoutParserVisitor2(getLayout().getLayoutContainer(),
                dimension, this);
        invocation.accept(parser);
        return checkRootGroup(parser.getRootGroup());
    } else {//from  ww  w  .j  a  va2 s . c o m
        // no method invocation
        return new LayoutInterval(PARALLEL);
    }
}

From source file:org.eclipse.wb.internal.swing.java6.model.GroupLayoutInfo.java

License:Open Source License

protected SpringInfo parseGroup(String methodName, Map<IAbstractComponentInfo, WidgetSpringInfo> widgetMaps) {
    MethodInvocation invocation = getMethodInvocation(methodName);
    GroupLayoutParserVisitor parser = new GroupLayoutParserVisitor(widgetMaps, methodName, getContainer());
    invocation.accept(parser);
    return parser.getRootGroup();
}