判断是否为真: Person person //Java 写法 if (person!= null){ if (person.Data!=null){ println person.Data.name } } //Groovy println person?.Data?.name