[Java] Class ConstructorNodeUtils
- org.apache.groovy.ast.tools.ConstructorNodeUtils
public class ConstructorNodeUtils extends Object
Utility class for working with ConstructorNodes
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
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. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
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.
- Parameters:
- code
- Returns:
- the first statement if a special call or null
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/ast/tools/ConstructorNodeUtils.html