Class OperationContributor

    • Field Detail

      • cachedMethodNames

        protected java.util.Set<java.lang.String> cachedMethodNames
    • Constructor Detail

      • OperationContributor

        public OperationContributor()
    • Method Detail

      • contributesTo

        public abstract boolean contributesTo​(java.lang.Object target)
      • findContributedMethodForUnevaluatedParameters

        public ObjectMethod findContributedMethodForUnevaluatedParameters​(java.lang.Object target,
                                                                          java.lang.String name,
                                                                          java.util.List<Expression> parameterExpressions,
                                                                          IEolContext context)
      • findContributedMethodForEvaluatedParameters

        public ObjectMethod findContributedMethodForEvaluatedParameters​(java.lang.Object target,
                                                                        java.lang.String name,
                                                                        java.lang.Object[] parameters,
                                                                        IEolContext context)
      • findContributedMethodForEvaluatedParameters

        public ObjectMethod findContributedMethodForEvaluatedParameters​(java.lang.Object target,
                                                                        java.lang.String name,
                                                                        java.lang.Object[] parameters,
                                                                        IEolContext context,
                                                                        boolean overrideContextOperationContributorRegistry)
      • includeInheritedMethods

        protected boolean includeInheritedMethods()
        Specifies whether methods in the supertype of the contributor should be included when finding contributed operations. Typically, this should not be the case and, as such, this method returns false by default.
      • getReflectionTarget

        protected java.lang.Object getReflectionTarget​(java.lang.Object target)
      • getTarget

        protected java.lang.Object getTarget()
        Returns:
        The target field.
        Since:
        1.6
      • setTarget

        public void setTarget​(java.lang.Object target)
      • setContext

        public void setContext​(IEolContext context)
      • getContext

        protected IEolContext getContext()
        Returns:
        Since:
        1.6
      • close

        public void close()
        Clears the target and context.
        Specified by:
        close in interface java.lang.AutoCloseable
        Since:
        2.2