net.sourceforge.nrl.parser.ast.constraints.impl
Class CardinalityConstraintImpl

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by net.sourceforge.nrl.parser.ast.impl.Antlr3NRLBaseAst
              extended by net.sourceforge.nrl.parser.ast.constraints.impl.CardinalityConstraintImpl
All Implemented Interfaces:
ICardinalityConstraint, INRLAstNode, org.antlr.runtime.tree.Tree

public class CardinalityConstraintImpl
extends Antlr3NRLBaseAst
implements ICardinalityConstraint


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.ast.constraints.ICardinalityConstraint
ICardinalityConstraint.QualifierEnum
 
Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
 
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
CardinalityConstraintImpl()
           
CardinalityConstraintImpl(org.antlr.runtime.Token token)
           
 
Method Summary
 String dump(int indent)
          Dump the AST and its children for debugging purposes
 int getColumn()
          Return the column in the input file where this node occurred.
 int getLine()
          Return the line in the input file where this node occurred.
 int getNumber()
          Return the cardinality number.
 ICardinalityConstraint.QualifierEnum getQualifier()
          Return one of the qualifier constants defined in this class, that bound the number.
 
Methods inherited from class net.sourceforge.nrl.parser.ast.impl.Antlr3NRLBaseAst
accept, doIndent, getUserData, initialisePositionFromChild, setColumn, setLine, setUserData
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, getUserData, setUserData
 

Constructor Detail

CardinalityConstraintImpl

public CardinalityConstraintImpl()

CardinalityConstraintImpl

public CardinalityConstraintImpl(org.antlr.runtime.Token token)
Method Detail

dump

public String dump(int indent)
Description copied from interface: INRLAstNode
Dump the AST and its children for debugging purposes

Specified by:
dump in interface INRLAstNode
Overrides:
dump in class Antlr3NRLBaseAst
Parameters:
indent - the indentation count, 0 on first call
Returns:
the AST as a string

getLine

public int getLine()
Description copied from interface: INRLAstNode
Return the line in the input file where this node occurred.

Specified by:
getLine in interface INRLAstNode
Specified by:
getLine in interface org.antlr.runtime.tree.Tree
Overrides:
getLine in class Antlr3NRLBaseAst
Returns:
the line, 1-based

getColumn

public int getColumn()
Description copied from interface: INRLAstNode
Return the column in the input file where this node occurred.

Specified by:
getColumn in interface INRLAstNode
Overrides:
getColumn in class Antlr3NRLBaseAst
Returns:
the column, 1-based

getNumber

public int getNumber()
Description copied from interface: ICardinalityConstraint
Return the cardinality number. The number will be greater than or equal to zero.

Specified by:
getNumber in interface ICardinalityConstraint
Returns:
the number

getQualifier

public ICardinalityConstraint.QualifierEnum getQualifier()
Description copied from interface: ICardinalityConstraint
Return one of the qualifier constants defined in this class, that bound the number.

Specified by:
getQualifier in interface ICardinalityConstraint
Returns:
the constant


Copyright © 2006-2013. All Rights Reserved.