public static ConstructorNode getDefaultConstructor ( ClassNode classNode ) { for ( ConstructorNode cons : classNode . getDeclaredConstructors ( ) ) { if ( cons . getParameters ( ) . length == 0 ) { return cons ; } } return null ; }
Obtains the default constructor for the given class node .