The result of judicious design, all dynamic method calls get routed through invokeMethod and property access through getProperty and setProperty.
明智设计的结果是:通过invokeMethod调用所有的动态方法,通过getProperty和setProperty访问属性。
When you invoke a Groovy method that has no parameters, you must call it with an empty set of parentheses, which allows Groovy to distinguish between a property access from a method call.
当您调用一个没有参数的Groovy方法时,您必须使用一对空括号调用它,这使得Groovy可以分清一个属性访问和一个方法调用之间的区别。
Property access then provides a convenient way to write joins.
属性存取则提供了撰写联结的简便方法。
The right to enter a property. Access may be restricted to certain times, to certain persons and to certain purposes (i. e. access for the purpose of inspection).
进入某物业的权力。该权力可以限定时间、人物或目的。
The right to enter a property. Access may be restricted to certain times, to certain persons and to certain purposes (i. e. access for the purpose of inspection).
进入某物业的权力。该权力可以限定时间、人物或目的。
应用推荐