public class DefaultExpressionBuilder.FunctionBase extends ExpressionBuilder.AbstractValue implements ExpressionBuilder.Function
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
format |
protected java.lang.String |
name |
protected java.util.List<ExpressionBuilder.Value> |
parameters |
properties
Constructor and Description |
---|
FunctionBase(java.lang.String name) |
FunctionBase(java.lang.String name,
java.lang.String format) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionBuilder.Visitor visitor,
ExpressionBuilder.VisitorFilter filter) |
DefaultExpressionBuilder.FunctionBase |
clone()
Creates a copy of the object.
|
ExpressionBuilder.Function |
format(java.lang.String format) |
java.lang.String |
name() |
java.lang.String |
name(java.lang.String name) |
ExpressionBuilder.Function |
parameter(ExpressionBuilder.Value parameter) |
java.util.List<ExpressionBuilder.Value> |
parameters() |
void |
replace(ExpressionBuilder.Value target,
ExpressionBuilder.Value replacement) |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<ExpressionBuilder.Value> formatter) |
copyPropertiesFrom, getProperties, getProperty, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyPropertiesFrom
getProperties, getProperty, setProperty
cloneQuietly, cloneQuietly
protected java.lang.String name
protected java.lang.String format
protected java.util.List<ExpressionBuilder.Value> parameters
public FunctionBase(java.lang.String name, java.lang.String format)
public FunctionBase(java.lang.String name)
public DefaultExpressionBuilder.FunctionBase clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface ExpressionBuilder.Value
clone
in class ExpressionBuilder.AbstractValue
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public java.util.List<ExpressionBuilder.Value> parameters()
parameters
in interface ExpressionBuilder.Function
public ExpressionBuilder.Function format(java.lang.String format)
format
in interface ExpressionBuilder.Function
public ExpressionBuilder.Function parameter(ExpressionBuilder.Value parameter)
parameter
in interface ExpressionBuilder.Function
public java.lang.String name()
name
in interface ExpressionBuilder.Function
public java.lang.String name(java.lang.String name)
name
in interface ExpressionBuilder.Function
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
accept
in class ExpressionBuilder.AbstractValue
public void replace(ExpressionBuilder.Value target, ExpressionBuilder.Value replacement)
replace
in interface ExpressionBuilder.Value
replace
in class ExpressionBuilder.AbstractValue
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Formatter<ExpressionBuilder.Value> formatter)
toString
in interface ExpressionBuilder.Value