Eclipse快捷方式可从参数化构造函数在POJO中创建字段?

时间:2018-10-30 10:41:55

标签: java eclipse

我不确定提出这个问题是否有意义,但是当我开发 Spring Boot + Axon + CQRS 时,我总是需要从以下构造函数中创建一个字段(成员变量)班级。有什么捷径捷径可以帮助我吗?

我已经看到人们采用 IntelliJ Idea 的做法。在Eclipse / STS中可以实现某些目标?

ComplaintFileEvent.java

$str ="Surname : Lorem Creme
       Name : Doe 
       Bank name :P.O.S
       Account no:50345343
       EC no:0000000K
       ID no :85-000000 Q 85
       DOB : 01-06-34
       Employer name:min of education
       Employeer Number: Borera pry 066 Mutawatawa
       Client Physical Address: 45 New Lipore";

function ge($string, $start, $end){
     $string = ' '. $string;
     $ini =strpos($string, $start);
     if ($ini == 0) return '';
     $ini += strlen($start);
     $len = strpos($string, $end, $ini) - $ini;
     $den =substr($string, $ini, $len);
     return substr($den, 0, -4);

 }

if (isset($_POST['insert'])){
     $real = $str;
$guru = preg_replace('/\s+/', '', $real);
$rem = str_replace(':', '', $guru);
$ren = str_replace('-', '', $rem);
$surname = ge($ren, "Surname", "Name");


$firstname =ge($ren, "Name", "Bankname");
$account_number = ge($ren, "Accountno", "ECno");
$Ec = ge($ren, "ECno", "IDno");
$id_num = ge($ren, 'IDno', "DOB");
$dob = ge($ren, "DOB", "Employername");
// Employer name:min of education
echo "First name: $firstname <br> Last name: $surname <br>";
echo "Bank : $bank_name <br>";
echo "ID Number : $id_num <br>";
echo "Account Number : $account_number <br>";
echo "DOB : $dob <br>";
echo "EC Number : $nex_ofk";
}

是否有任何eclipse快捷方式可以导入静态导入?

0 个答案:

没有答案