Class OperationContributor
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
-
- Direct Known Subclasses:
AnyOperationContributor,ArrayOperationContributor,BasicEUnitOperationContributor,BooleanOperationContributor,DateOperationContributor,DictionaryModelOperationContributor,EmgOperationContributor,EUnitTask.RunTargetOperationContributor,ExtraEUnitOperationContributor,GetImageOperationContributor,IntegerOperationContributor,IterableOperationContributor,MixedElementOperationContributor,ModelElementOperationContributor,ModelOperationContributor,NumberOperationContributor,ReflectiveOperationContributor,RequirementModelOperationContributor,ScalarOperationContributor,StringCompatibilityOperationContributor,StringOperationContributor,WrapperOperationContributor
public abstract class OperationContributor extends java.lang.ObjectImplementation note: All extending classes should ensure that the operation contributor is stateless, or if it contains state (i.e. fields) then they are either immutable or ThreadLocal.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>cachedMethodNames
-
Constructor Summary
Constructors Constructor Description OperationContributor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancontributesTo(java.lang.Object target)ObjectMethodfindContributedMethodForEvaluatedParameters(java.lang.Object target, java.lang.String name, java.lang.Object[] parameters, IEolContext context)ObjectMethodfindContributedMethodForEvaluatedParameters(java.lang.Object target, java.lang.String name, java.lang.Object[] parameters, IEolContext context, boolean overrideContextOperationContributorRegistry)ObjectMethodfindContributedMethodForUnevaluatedParameters(java.lang.Object target, java.lang.String name, java.util.List<Expression> parameterExpressions, IEolContext context)protected IEolContextgetContext()protected java.lang.ObjectgetReflectionTarget(java.lang.Object target)protected java.lang.ObjectgetTarget()protected booleanincludeInheritedMethods()Specifies whether methods in the supertype of the contributor should be included when finding contributed operations.voidsetContext(IEolContext context)voidsetTarget(java.lang.Object target)
-
-
-
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
targetfield. - 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
-
-