protected final void generateSourcePublicMethodDeclaration ( SourceWriter sourceWriter , String returnType , String methodName , String arguments , boolean override ) { if ( override ) { sourceWriter . println ( "@Override" ) ; } sourceWriter . print ( "public " ) ; if ( returnType != null ) { sourceWriter . print ( returnType ) ; sourceWriter . print ( " " ) ; } sourceWriter . print ( methodName ) ; sourceWriter . print ( "(" ) ; sourceWriter . print ( arguments ) ; sourceWriter . println ( ") {" ) ; sourceWriter . indent ( ) ; }
This method generates the source code for a public method or constructor including the opening brace and indentation .