public String getTranslation ( ) { if ( codons == null ) { return "" ; } StringBuilder translation = new StringBuilder ( ) ; for ( Codon codon : codons ) { translation . append ( codon . getAminoAcid ( ) ) ; } return translation . toString ( ) ; }
Returns the translation including stop codons and trailing bases .