Package jp.co.future.uroborosql.node
Class AbstractNode
- java.lang.Object
-
- jp.co.future.uroborosql.node.AbstractNode
-
- All Implemented Interfaces:
LoggerBase
,ParserLoggingSupport
,Node
- Direct Known Subclasses:
ContainerNode
,ExpressionNode
,SqlNode
public abstract class AbstractNode extends Object implements Node, ParserLoggingSupport
SQLノードの抽象親クラス- Author:
- H.Sugimoto
-
-
Field Summary
-
Fields inherited from interface jp.co.future.uroborosql.log.support.LoggerBase
SUPPRESS_LOG_OUTPUT, SUPPRESS_PARAMETER_LOG_OUTPUT
-
Fields inherited from interface jp.co.future.uroborosql.log.support.ParserLoggingSupport
PARSER_LOG
-
-
Constructor Summary
Constructors Constructor Description AbstractNode(int position, int length)
コンストラクタ
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(Node node)
子ノード追加Node
getChild(int index)
子ノード取得int
getChildSize()
子ノード数取得int
getLength()
データ長取得int
getPosition()
開始位置取得protected boolean
isPassed()
protected void
pass()
void
passed(PassedRoute passed)
カバレッジ情報を収集する。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jp.co.future.uroborosql.log.support.LoggerBase
debugWith, errorWith, infoWith, isSuppressLogging, isSuppressParameterLogging, releaseLogging, releaseParameterLogging, suppressLogging, suppressParameterLogging, traceWith, warnWith
-
-
-
-
Method Detail
-
getChildSize
public int getChildSize()
子ノード数取得- Specified by:
getChildSize
in interfaceNode
- Returns:
- 子ノード数
- See Also:
Node.getChildSize()
-
getChild
public Node getChild(int index)
子ノード取得- Specified by:
getChild
in interfaceNode
- Parameters:
index
- インデックス- Returns:
- 子ノード
- See Also:
Node.getChild(int)
-
addChild
public void addChild(Node node)
子ノード追加- Specified by:
addChild
in interfaceNode
- Parameters:
node
- 子ノード- See Also:
Node.addChild(jp.co.future.uroborosql.node.Node)
-
passed
public void passed(PassedRoute passed)
カバレッジ情報を収集する。- Specified by:
passed
in interfaceNode
- Parameters:
passed
- 結果を保持するObject- See Also:
Node.passed(PassedRoute)
-
getPosition
public int getPosition()
開始位置取得- Specified by:
getPosition
in interfaceNode
- Returns:
- 開始位置
- See Also:
Node.getPosition()
-
pass
protected void pass()
-
isPassed
protected boolean isPassed()
-
getLength
public int getLength()
データ長取得- Specified by:
getLength
in interfaceNode
- Returns:
- データ長
- See Also:
Node.getLength()
-
-