public class Function extends BaseLanguageObject implements Expression, MetadataReference<FunctionMethod>
Constructor and Description |
---|
Function(String name,
List<? extends Expression> params,
Class<?> type) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageObjectVisitor visitor) |
FunctionMethod |
getMetadataObject() |
String |
getName()
Get name of the function
|
List<Expression> |
getParameters()
Get the parameters used in this function.
|
Class<?> |
getType()
Determine the type returned by this expression.
|
void |
setMetadataObject(FunctionMethod metadataObject) |
void |
setName(String name)
Set name of the function
|
void |
setType(Class<?> type) |
toString
public Function(String name, List<? extends Expression> params, Class<?> type)
public FunctionMethod getMetadataObject()
getMetadataObject
in interface MetadataReference<FunctionMethod>
public void setMetadataObject(FunctionMethod metadataObject)
public String getName()
public List<Expression> getParameters()
public void acceptVisitor(LanguageObjectVisitor visitor)
acceptVisitor
in interface LanguageObject
public void setName(String name)
name
- Function namepublic Class<?> getType()
Expression
getType
in interface Expression
public void setType(Class<?> type)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.