de.dante.extex.interpreter.context.impl
Class GroupInfoImpl

java.lang.Object
  extended byde.dante.extex.interpreter.context.impl.GroupInfoImpl
All Implemented Interfaces:
GroupInfo

public class GroupInfoImpl
extends java.lang.Object
implements GroupInfo

This class provides a reference implementation for a GroupInfo. It is a mere container with some getters.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Constructor Summary
GroupInfoImpl()
          Creates a new object.
GroupInfoImpl(Locator locator, GroupType groupType, Token groupStart)
          Creates a new object.
 
Method Summary
 Token getGroupStart()
          Getter for the starting token of the group.
 GroupType getGroupType()
          Getter for the group type.
 Locator getLocator()
          Getter for the locator describing where the group started.
 void setGroupStart(Token groupStart)
          Setter for groupStart.
 void setGroupType(GroupType type)
          Setter for groupType.
 void setLocator(Locator locator)
          Setter for locator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupInfoImpl

public GroupInfoImpl()
Creates a new object.


GroupInfoImpl

public GroupInfoImpl(Locator locator,
                     GroupType groupType,
                     Token groupStart)
Creates a new object.

Parameters:
locator - the locator
groupType - the group type
groupStart - the starting token
Method Detail

getGroupStart

public Token getGroupStart()
Description copied from interface: GroupInfo
Getter for the starting token of the group. This value is null for the global group.

Specified by:
getGroupStart in interface GroupInfo
Returns:
the token which started the group
See Also:
GroupInfo.getGroupStart()

getGroupType

public GroupType getGroupType()
Description copied from interface: GroupInfo
Getter for the group type.

Specified by:
getGroupType in interface GroupInfo
Returns:
the group type
See Also:
GroupInfo.getGroupType()

getLocator

public Locator getLocator()
Description copied from interface: GroupInfo
Getter for the locator describing where the group started. This value can be null for the global group.

Specified by:
getLocator in interface GroupInfo
Returns:
the locator
See Also:
GroupInfo.getLocator()

setGroupStart

public void setGroupStart(Token groupStart)
Setter for groupStart.

Parameters:
groupStart - the groupStart to set

setGroupType

public void setGroupType(GroupType type)
Setter for groupType.


setLocator

public void setLocator(Locator locator)
Setter for locator.

Parameters:
locator - the locator to set