public class MethodInvocationStream extends Stream
Constructor and Description |
---|
MethodInvocationStream()
Ctor.
|
MethodInvocationStream(String className,
String methodName,
String optStreamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
MethodInvocationStream |
addParameter(Expression parameterExpression)
Adds a parameters to the method invocation.
|
static MethodInvocationStream |
create(String className,
String methodName)
Creates a new method-invocation-based stream without parameters.
|
static MethodInvocationStream |
create(String className,
String methodName,
String optStreamName)
Creates a new method-invocation-based stream without parameters.
|
String |
getClassName()
Returns the name of the class providing the method.
|
String |
getMethodName()
Returns the name of the static method to invoke in the from-clause.
|
String |
getOptionalEventTypeName()
Returns the optional event type name
|
List<Expression> |
getParameterExpressions()
Returns a list of expressions that are parameters to the method.
|
void |
setClassName(String className)
Sets the name of the class providing the method.
|
void |
setMethodName(String methodName)
Sets the name of the static method to invoke in the from-clause.
|
void |
setOptionalEventTypeName(String optionalEventTypeName)
Sets the optional event type name
|
void |
setParameterExpressions(List<Expression> parameterExpressions)
Sets a list of expressions that are parameters to the method.
|
void |
toEPLStream(StringWriter writer,
EPStatementFormatter formatter)
Renders the stream in textual representation.
|
void |
toEPLStreamOptions(StringWriter writer)
Renders the stream in textual representation any stream options, if present.
|
void |
toEPLStreamType(StringWriter writer)
Renders the stream type under a non-complete textual representation for tool use
|
getStreamName, setStreamName, toEPL
public MethodInvocationStream()
public MethodInvocationStream(String className, String methodName, String optStreamName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamedpublic static MethodInvocationStream create(String className, String methodName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodpublic static MethodInvocationStream create(String className, String methodName, String optStreamName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamedpublic String getClassName()
public void setClassName(String className)
className
- class namepublic String getMethodName()
public void setMethodName(String methodName)
methodName
- method namepublic List<Expression> getParameterExpressions()
public void setParameterExpressions(List<Expression> parameterExpressions)
parameterExpressions
- list of parameter expressionspublic String getOptionalEventTypeName()
public void setOptionalEventTypeName(String optionalEventTypeName)
optionalEventTypeName
- event type name namepublic MethodInvocationStream addParameter(Expression parameterExpression)
parameterExpression
- is the expression to addpublic void toEPLStream(StringWriter writer, EPStatementFormatter formatter)
Stream
toEPLStream
in class Stream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLStreamType(StringWriter writer)
Stream
toEPLStreamType
in class Stream
writer
- to output topublic void toEPLStreamOptions(StringWriter writer)
Stream
toEPLStreamOptions
in class Stream
writer
- to output to