public class Argument extends BaseLanguageObject implements MetadataReference<ProcedureParameter>
Modifier and Type | Class and Description |
---|---|
static class |
Argument.Direction |
Constructor and Description |
---|
Argument(Argument.Direction direction,
Class<?> type,
ProcedureParameter metadataObject)
Typical constructor for an out/return parameter
|
Argument(Argument.Direction direction,
Expression value,
Class<?> type,
ProcedureParameter metadataObject) |
Argument(Argument.Direction direction,
Literal value,
ProcedureParameter metadataObject)
Typical constructor for an in/in out parameter
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageObjectVisitor visitor) |
Literal |
getArgumentValue()
Get the argument as a
Literal value. |
Argument.Direction |
getDirection() |
Expression |
getExpression() |
ProcedureParameter |
getMetadataObject() |
Class<?> |
getType() |
void |
setArgumentValue(Literal value) |
void |
setDirection(Argument.Direction direction) |
void |
setExpression(Expression ex) |
void |
setMetadataObject(ProcedureParameter metadataObject) |
void |
setType(Class<?> type) |
toString
public Argument(Argument.Direction direction, Expression value, Class<?> type, ProcedureParameter metadataObject)
public Argument(Argument.Direction direction, Class<?> type, ProcedureParameter metadataObject)
direction
- type
- metadataObject
- public Argument(Argument.Direction direction, Literal value, ProcedureParameter metadataObject)
direction
- type
- metadataObject
- public Argument.Direction getDirection()
public Literal getArgumentValue()
Literal
value.
Will throw a ClassCastException
if the Expression
is not a Literal
.public Class<?> getType()
public void setType(Class<?> type)
public void acceptVisitor(LanguageObjectVisitor visitor)
acceptVisitor
in interface LanguageObject
public void setDirection(Argument.Direction direction)
public void setArgumentValue(Literal value)
public ProcedureParameter getMetadataObject()
getMetadataObject
in interface MetadataReference<ProcedureParameter>
public void setMetadataObject(ProcedureParameter metadataObject)
public Expression getExpression()
public void setExpression(Expression ex)
Copyright © 2019. All rights reserved.