junichi11 commented on code in PR #8227:
URL: https://github.com/apache/netbeans/pull/8227#discussion_r1951725113


##########
php/php.editor/src/org/netbeans/modules/php/editor/api/elements/FieldElement.java:
##########
@@ -16,19 +16,56 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
 package org.netbeans.modules.php.editor.api.elements;
 
+import java.util.List;
 import org.netbeans.modules.php.editor.api.PhpElementKind;
 
 /**
  * @author Radek Matous
  */
 public interface FieldElement extends TypedInstanceElement, TypeMemberElement {
+
     PhpElementKind KIND = PhpElementKind.FIELD;
+
     String getName(boolean dollared);
+
     boolean isAnnotation();
+
     boolean isUnionType();
+
     boolean isIntersectionType();
+
     String getDeclaredType();
+
+    /**
+     * Check whether this element is a hooked property(field).
+     *
+     * @param field
+     * @return {@code true} it's hooked property, {@code false} otherwise
+     * @since 2.46.0
+     */
+    public static boolean isHooked(FieldElement field) {
+        return (field instanceof HookedFieldElemnt)
+                && ((HookedFieldElemnt) field).isHooked();
+    }
+
+    public interface HookedFieldElemnt extends FieldElement {

Review Comment:
   Oops, Thank you for catching it!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to