private String processComment ( String text , TemplateOptions options ) { if ( options . hasKType ( ) ) { text = text . replaceAll ( "(KType)(?=\\p{Lu})" , options . getKType ( ) . getBoxedType ( ) ) ; text = text . replace ( "KType" , options . getKType ( ) . getType ( ) ) ; } if ( options . hasVType ( ) ) { text = text . replaceAll ( "(VType)(?=\\p{Lu})" , options . getVType ( ) . getBoxedType ( ) ) ; text = text . replace ( "VType" , options . getVType ( ) . getType ( ) ) ; } return text ; }
Process references inside comment blocks javadocs etc .