Top Description Constructors Methods
org.apache.groovy.ast.tools

public Class ConstructorNodeUtils

extends Object
Class Inheritance
Imports
org.codehaus.groovy.ast.expr.ConstructorCallExpression, .Expression, org.codehaus.groovy.ast.stmt.BlockStatement, .ExpressionStatement, .Statement, java.util.List

Utility class for working with ConstructorNodes

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ConstructorCallExpression

Returns:

the first statement if a special call or null
getFirstIfSpecialConstructorCall
(Statement code)

Return the first statement from the constructor code if it is a call to super or this, otherwise null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConstructorNodeUtilsback to summary
private ConstructorNodeUtils()

Method Detail

getFirstIfSpecialConstructorCallback to summary
public static ConstructorCallExpression getFirstIfSpecialConstructorCall(Statement code)

Return the first statement from the constructor code if it is a call to super or this, otherwise null.

Returns:ConstructorCallExpression

the first statement if a special call or null