net.sf.parser4j.parsetreeinspector.entity
Class JtreeNode

java.lang.Object
  extended by net.sf.parser4j.parsetreeinspector.entity.JtreeNode
All Implemented Interfaces:
IJtreeNode

public class JtreeNode
extends java.lang.Object
implements IJtreeNode

node for jtree

Author:
luc peuvrier

Constructor Summary
JtreeNode(IParseNode parseNode)
           
JtreeNode(IParseNode parseNode, int alternativeNumber)
           
JtreeNode(ParseNodeComponent component)
           
 
Method Summary
 void addChild(IJtreeNode child)
           
 boolean equals(java.lang.Object obj)
           
 int getAlternativeNumber()
           
 java.lang.Object getChildAt(int index)
           
 int getChildCount()
           
 int getGrammarSymbolIdentifier()
           
 int getIndexOfChild(IJtreeNode child)
           
 int getMyIdentifier()
           
 java.lang.String getName()
           
 int getNumberOfAlternative()
           
 IParseNode getParseNode()
           
 EnumNodeType getParseNodeType()
           
 int hashCode()
           
 boolean isAlternative()
           
 boolean isComponent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JtreeNode

public JtreeNode(IParseNode parseNode)

JtreeNode

public JtreeNode(IParseNode parseNode,
                 int alternativeNumber)

JtreeNode

public JtreeNode(ParseNodeComponent component)
Method Detail

getParseNode

public IParseNode getParseNode()
Specified by:
getParseNode in interface IJtreeNode

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface IJtreeNode

getAlternativeNumber

public int getAlternativeNumber()
Specified by:
getAlternativeNumber in interface IJtreeNode

isComponent

public boolean isComponent()
Specified by:
isComponent in interface IJtreeNode

addChild

public void addChild(IJtreeNode child)
Specified by:
addChild in interface IJtreeNode

getChildAt

public java.lang.Object getChildAt(int index)
Specified by:
getChildAt in interface IJtreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface IJtreeNode

getIndexOfChild

public int getIndexOfChild(IJtreeNode child)
Specified by:
getIndexOfChild in interface IJtreeNode

getGrammarSymbolIdentifier

public int getGrammarSymbolIdentifier()

getName

public java.lang.String getName()

getMyIdentifier

public int getMyIdentifier()

getNumberOfAlternative

public int getNumberOfAlternative()

getParseNodeType

public EnumNodeType getParseNodeType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.