[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Answers the question of whether a given AST constant node can be converted via parsing into a primitive value of a given type.

Namespace: net.esper.eql.parse
Assembly:   NEsper (in NEsper.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function canConvert ( _
	astTypeConstant As Integer, _
	targetType As PrimitiveValueType _
) As Boolean
C#
public static bool canConvert (
	int astTypeConstant,
	PrimitiveValueType targetType
)
Visual C++
public:
static bool canConvert (
	int astTypeConstant, 
	PrimitiveValueType^ targetType
)

Parameters

astTypeConstant
System.Int32
is the AST constant node's type
targetType
net.esper.type.PrimitiveValueType
is the primitve value's type which will be used to parse the string

Return Value

true if the primitive value can be used to parse the AST node, false if not