private FieldNode createFieldNodeCopy ( String newName , ClassNode newType , FieldNode f ) { if ( newType == null ) newType = f . getType ( ) ; newType = newType . getPlainNodeReference ( ) ; return new FieldNode ( newName , f . getModifiers ( ) , newType , f . getOwner ( ) , f . getInitialValueExpression ( ) ) ; }
Creates a copy of a FieldNode with a new name and optionally a new type .