f00f.net.irc.martyr.commands
Class ChannelModeCommand

java.lang.Object
  |
  +--f00f.net.irc.martyr.commands.ModeCommand
        |
        +--f00f.net.irc.martyr.commands.ChannelModeCommand
All Implemented Interfaces:
Command, InCommand, OutCommand

public class ChannelModeCommand
extends ModeCommand

Defines the ChannelMode command. Can be used to send a Channel mode. For receiving, this defines which channel modes Martyr knows about and passes them on to the Channel object. Note that the actual logic of what happens when a mode arrives lies in the clientstate.Channel object.


Fields inherited from class f00f.net.irc.martyr.commands.ModeCommand
IDENTIFIER
 
Constructor Summary
ChannelModeCommand(java.lang.String channelName)
          For sending a mode discovery.
ChannelModeCommand(java.lang.String prefix, java.lang.String channelName, java.util.StringTokenizer params)
          For receiving a mode command.
 
Method Summary
 java.lang.String getChannel()
           
 FullNick getSender()
           
 void makeModes()
           
 InCommand parse(java.lang.String prefix, java.lang.String identifier, java.lang.String params)
          Shouldn't be called, as ModeCommand should be responsible for parsing and creating this class.
 java.lang.String render()
          Should not be called, as ModeCommand doesn't actually represent a command.
 java.lang.String renderParams()
           
 boolean updateClientState(ClientState state)
          Passes the modes on to the clientstate.Channel object.
 
Methods inherited from class f00f.net.irc.martyr.commands.ModeCommand
getAttribute, getAttributeKeys, getIrcIdentifier, getSourceString, getState, parseModes, registerMode, selfRegister, setSourceString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelModeCommand

public ChannelModeCommand(java.lang.String prefix,
                          java.lang.String channelName,
                          java.util.StringTokenizer params)
For receiving a mode command.

ChannelModeCommand

public ChannelModeCommand(java.lang.String channelName)
For sending a mode discovery.
Method Detail

makeModes

public void makeModes()

parse

public InCommand parse(java.lang.String prefix,
                       java.lang.String identifier,
                       java.lang.String params)
Shouldn't be called, as ModeCommand should be responsible for parsing and creating this class.
Overrides:
parse in class ModeCommand

render

public java.lang.String render()
Description copied from class: ModeCommand
Should not be called, as ModeCommand doesn't actually represent a command. Use UserModeCommand or ChannelModeCommand instead.
Overrides:
render in class ModeCommand

renderParams

public java.lang.String renderParams()

getChannel

public java.lang.String getChannel()

getSender

public FullNick getSender()

updateClientState

public boolean updateClientState(ClientState state)
Passes the modes on to the clientstate.Channel object.
Overrides:
updateClientState in class ModeCommand


Copyright © 2000,2001,2002,2003 f00f networks.