Class QueryContextMenu


  • public class QueryContextMenu
    extends java.lang.Object
    • Method Detail

      • instanceOf

        public boolean instanceOf​(ISnapshot snapshot,
                                  int o,
                                  java.lang.String className)
                           throws SnapshotException
        Instanceof test which works for simple objects and arrays
        Parameters:
        snapshot -
        o - the object to be tested
        className - is an instance of this class?
        Returns:
        true if an instance
        Throws:
        SnapshotException
      • instanceOf

        public boolean instanceOf​(ISnapshot snapshot,
                                  IClass cls,
                                  java.lang.String className)
                           throws SnapshotException
        Instanceof test which works for simple object and array types
        Parameters:
        snapshot -
        cls -
        className -
        Returns:
        true if an instance
        Throws:
        SnapshotException
      • anySubInstances

        public boolean anySubInstances​(IClass cls)
      • unsuitableSubjects

        public boolean unsuitableSubjects​(QueryDescriptor query,
                                          java.util.List<IContextObject> menuContext)
        See if the menuContext cannot possibly satisfy the requirements of the query. Needs to be reasonably efficient, so if the calculation would take too long then it is okay to return false.
        Parameters:
        query -
        menuContext -
        Returns:
        true if the menuContext is unsuitable.