PSIntervalLiteralParseNode Class Reference

Inherits Simba::SQLEngine::PSParseNode.

List of all members.

Public Member Functions

virtual void AcceptVisitor (IParseTreeVisitor &in_visitor)
 Node's Accept method, used to pass a visitor.
virtual
PSIntervalLiteralParseNode
Clone () const
 Creates a clone of this node object.
PSDataType GetDataType () const
 Returns the data type of this node.
simba_uint32 GetFractionalSecondsPrecision () const
 Returns the interval literal's specified fractional seconds precision.
simba_uint32 GetLeadingFieldPrecision () const
 Returns the interval literal's specified leading field precision.
PSLiteralType GetLiteralType () const
 Returns the literal type of this interval literal.
virtual simba_wstring GetLogString () const
 Returns a string representation of this node.
 PSIntervalLiteralParseNode (const PSIntervalLiteralParseNode &in_other)
 Copy constructor.
 PSIntervalLiteralParseNode (PSLiteralType in_intervalType, const simba_wstring &in_value, simba_uint32 in_leadingFieldPrecision, simba_uint32 in_fractionalSecondsPrecision)
 Constructor.
virtual ~PSIntervalLiteralParseNode ()
 Destructor.

Detailed Description

A parse node for representing interval literals.

Literals could be: PS_LITERAL_INTERVAL_YEAR PS_LITERAL_INTERVAL_YEAR_MONTH PS_LITERAL_INTERVAL_MONTH PS_LITERAL_INTERVAL_DAY PS_LITERAL_INTERVAL_DAY_HOUR PS_LITERAL_INTERVAL_DAY_MINUTE PS_LITERAL_INTERVAL_DAY_SECOND PS_LITERAL_INTERVAL_HOUR PS_LITERAL_INTERVAL_HOUR_MINUTE PS_LITERAL_INTERVAL_HOUR_SECOND PS_LITERAL_INTERVAL_MINUTE PS_LITERAL_INTERVAL_MINUTE_SECOND PS_LITERAL_INTERVAL_SECOND


Constructor & Destructor Documentation

PSIntervalLiteralParseNode ( PSLiteralType  in_intervalType,
const simba_wstring in_value,
simba_uint32  in_leadingFieldPrecision,
simba_uint32  in_fractionalSecondsPrecision 
)

Constructor.

Parameters:
in_intervalType What type of interval literal this node represents.
in_value The value of this literal node.
in_leadingFieldPrecision The specified leading field precision
in_fractionalSecondsPrecision The specified fractional seconds precision

Copy constructor.

To support "cloning". See Clone() method.

Parameters:
in_other The other node from which to create a copy.
virtual ~PSIntervalLiteralParseNode (  )  [virtual]

Destructor.


Member Function Documentation

virtual void AcceptVisitor ( IParseTreeVisitor in_visitor  )  [virtual]

Node's Accept method, used to pass a visitor.

Parameters:
in_visitor The visitor that is to be used to visit this node.

Implements PSParseNode.

virtual PSIntervalLiteralParseNode* Clone (  )  const [virtual]

Creates a clone of this node object.

Returns:
A clone of this node object. (OWN)

Implements PSParseNode.

PSDataType GetDataType (  )  const [virtual]

Returns the data type of this node.

Returns:
PS_DT_INTERVAL_LITERAL always.

Implements PSParseNode.

simba_uint32 GetFractionalSecondsPrecision (  )  const

Returns the interval literal's specified fractional seconds precision.

simba_uint32 GetLeadingFieldPrecision (  )  const

Returns the interval literal's specified leading field precision.

PSLiteralType GetLiteralType (  )  const [virtual]

Returns the literal type of this interval literal.

Reimplemented from PSParseNode.

virtual simba_wstring GetLogString (  )  const [virtual]

Returns a string representation of this node.

Reimplemented from PSParseNode.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:18 2017 for SimbaEngine 10.1.3.1011 by simba