Package com.ibm.fhir.path.function
Class FHIRPathAbstractFunction
- java.lang.Object
-
- com.ibm.fhir.path.function.FHIRPathAbstractFunction
-
- All Implemented Interfaces:
FHIRPathFunction
- Direct Known Subclasses:
AllFalseFunction
,AllTrueFunction
,AnyFalseFunction
,AnyTrueFunction
,BetweenFunction
,CheckModifiersFunction
,ChildrenFunction
,CombineFunction
,ConformsToFunction
,ContainsFunction
,ConvertsToBooleanFunction
,ConvertsToDateFunction
,ConvertsToDateTimeFunction
,ConvertsToDecimalFunction
,ConvertsToIntegerFunction
,ConvertsToQuantityFunction
,ConvertsToStringFunction
,ConvertsToTimeFunction
,CountFunction
,DescendantsFunction
,DistinctFunction
,EmptyFunction
,EndsWithFunction
,ExcludeFunction
,ExtensionFunction
,FHIRPathAbstractTermFunction
,FirstFunction
,GetValueFunction
,HasValueFunction
,HtmlChecksFunction
,IndexOfFunction
,IntersectFunction
,IsDistinctFunction
,ItemFunction
,LastFunction
,LengthFunction
,LowerFunction
,MatchesFunction
,MemberOfFunction
,NotFunction
,NowFunction
,ReplaceFunction
,ReplaceMatchesFunction
,ResolveFunction
,SingleFunction
,SkipFunction
,SliceFunction
,StartsWithFunction
,SubsetOfFunction
,SubstringFunction
,SupersetOfFunction
,TailFunction
,TakeFunction
,TimeOfDayFunction
,ToBooleanFunction
,ToCharsFunction
,ToDateFunction
,ToDateTimeFunction
,TodayFunction
,ToDecimalFunction
,ToIntegerFunction
,ToQuantityFunction
,ToStringFunction
,ToTimeFunction
,TypeFunction
,UnionFunction
,UpperFunction
public abstract class FHIRPathAbstractFunction extends java.lang.Object implements FHIRPathFunction
-
-
Constructor Summary
Constructors Constructor Description FHIRPathAbstractFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Collection<FHIRPathNode>
apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
protected java.util.Collection<FHIRPathNode>
cacheFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments, java.util.Collection<FHIRPathNode> result)
boolean
equals(java.lang.Object obj)
protected void
generateIssue(FHIRPathEvaluator.EvaluationContext evaluationContext, IssueSeverity severity, IssueType code, java.lang.String description, java.lang.String expression)
protected java.util.Collection<FHIRPathNode>
getCachedFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
abstract int
getMaxArity()
abstract int
getMinArity()
abstract java.lang.String
getName()
protected boolean
hasCachedFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
int
hashCode()
-
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
- Specified by:
getName
in interfaceFHIRPathFunction
-
getMinArity
public abstract int getMinArity()
- Specified by:
getMinArity
in interfaceFHIRPathFunction
-
getMaxArity
public abstract int getMaxArity()
- Specified by:
getMaxArity
in interfaceFHIRPathFunction
-
apply
public java.util.Collection<FHIRPathNode> apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
- Specified by:
apply
in interfaceFHIRPathFunction
-
generateIssue
protected void generateIssue(FHIRPathEvaluator.EvaluationContext evaluationContext, IssueSeverity severity, IssueType code, java.lang.String description, java.lang.String expression)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getCachedFunctionResult
protected java.util.Collection<FHIRPathNode> getCachedFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
-
cacheFunctionResult
protected java.util.Collection<FHIRPathNode> cacheFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments, java.util.Collection<FHIRPathNode> result)
-
hasCachedFunctionResult
protected boolean hasCachedFunctionResult(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
-
-