public abstract class AbstractFunction extends Object implements Function
| Constructor and Description |
|---|
AbstractFunction(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected FieldValue |
checkArgument(FieldValue argument,
int index,
String alias) |
protected void |
checkFixedArityArguments(List<FieldValue> arguments,
int arity) |
protected void |
checkVariableArityArguments(List<FieldValue> arguments,
int minArity) |
protected void |
checkVariableArityArguments(List<FieldValue> arguments,
int minArity,
int maxArity) |
String |
getName()
Gets the default name of this function.
|
protected FieldValue |
getOptionalArgument(List<FieldValue> arguments,
int index) |
protected FieldValue |
getOptionalArgument(List<FieldValue> arguments,
int index,
String alias) |
protected FieldValue |
getRequiredArgument(List<FieldValue> arguments,
int index) |
protected FieldValue |
getRequiredArgument(List<FieldValue> arguments,
int index,
String alias) |
public AbstractFunction(String name)
protected void checkFixedArityArguments(List<FieldValue> arguments, int arity)
protected void checkVariableArityArguments(List<FieldValue> arguments, int minArity)
protected void checkVariableArityArguments(List<FieldValue> arguments, int minArity, int maxArity)
protected FieldValue getOptionalArgument(List<FieldValue> arguments, int index)
protected FieldValue getOptionalArgument(List<FieldValue> arguments, int index, String alias)
protected FieldValue getRequiredArgument(List<FieldValue> arguments, int index)
protected FieldValue getRequiredArgument(List<FieldValue> arguments, int index, String alias)
protected FieldValue checkArgument(FieldValue argument, int index, String alias)
Copyright © 2018. All rights reserved.