edu.upenn.cis.ptb
Class PTBLabelImpl
java.lang.Object
edu.upenn.cis.ptb.PTBLabelImpl
- All Implemented Interfaces:
- PTBLabel
- public class PTBLabelImpl
- extends java.lang.Object
- implements PTBLabel
- Author:
- nikhild
|
Constructor Summary |
PTBLabelImpl(java.lang.String type,
java.lang.String rolesStr,
int gapIndex,
int movementIndex,
java.lang.String raw)
Creates a new instance of PTBLabelImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PTBLabelImpl
public PTBLabelImpl(java.lang.String type,
java.lang.String rolesStr,
int gapIndex,
int movementIndex,
java.lang.String raw)
- Creates a new instance of PTBLabelImpl
getRaw
public java.lang.String getRaw()
- Specified by:
getRaw in interface PTBLabel
getRoles
public java.lang.String getRoles()
- Specified by:
getRoles in interface PTBLabel
getMovementIndex
public int getMovementIndex()
- Specified by:
getMovementIndex in interface PTBLabel
getType
public java.lang.String getType()
- Specified by:
getType in interface PTBLabel
hasRole
public boolean hasRole(java.lang.String role)
- Specified by:
hasRole in interface PTBLabel
hasMovementIndex
public boolean hasMovementIndex()
- Specified by:
hasMovementIndex in interface PTBLabel
toString
public java.lang.String toString()
getOwnerNode
public PTBTreeNode getOwnerNode()
- Specified by:
getOwnerNode in interface PTBLabel
getGapIndex
public int getGapIndex()
- Specified by:
getGapIndex in interface PTBLabel
hasGapIndex
public boolean hasGapIndex()
- Specified by:
hasGapIndex in interface PTBLabel
setOwnerNode
public void setOwnerNode(PTBTreeNode owner)
- Specified by:
setOwnerNode in interface PTBLabel