tran method
transform to target code, the target information is in the tip
Implementation
@override
String tran(LanguageTip tip) {
final defFormat = tip.getRule('def');
final giveFormat = tip.getRule('give');
var targetStr = target.tran(tip);
// 与える時に定義するかどうかを判定
if (tip.toString() == 'java') {
DType _type = getType();
targetStr = sprintf(defFormat, [_type.tran(tip), targetStr]);
}
// TODO: TEST
return sprintf(giveFormat, [
targetStr,
content?.tran(tip),
]);
}