f00f.net.irc.martyr.modes.channel
Class OperMode

java.lang.Object
  extended by f00f.net.irc.martyr.modes.GenericMode
      extended by f00f.net.irc.martyr.modes.channel.GenericChannelMode
          extended by f00f.net.irc.martyr.modes.channel.OperMode
All Implemented Interfaces:
Mode

public class OperMode
extends GenericChannelMode

Channel Operator Status - The mode 'o' is used to toggle the operator status of a channel member.

(From RFC2811)

Note that OperMode is recorded in the channel, but checking the op status of a member will give you a true list of who is and isn't an operator. This is because we don't know the entire list of modes when entering a channel.


Nested Class Summary
 
Nested classes/interfaces inherited from interface f00f.net.irc.martyr.Mode
Mode.Sign
 
Constructor Summary
OperMode()
           
 
Method Summary
 char getChar()
          The character that represents this mode (ie o for operator)
 Mode newInstance()
          A Mode can be constructed and asked to make copies of itself.
 boolean requiresParam()
          Should return true if this mode requires a parameter.
 
Methods inherited from class f00f.net.irc.martyr.modes.channel.GenericChannelMode
onePerChannel, recordInChannel
 
Methods inherited from class f00f.net.irc.martyr.modes.GenericMode
equals, getParam, getSign, hashCode, setParam, setSign, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperMode

public OperMode()
Method Detail

requiresParam

public boolean requiresParam()
Description copied from interface: Mode
Should return true if this mode requires a parameter.

Returns:
True or false if a param is required for mode

getChar

public char getChar()
Description copied from interface: Mode
The character that represents this mode (ie o for operator)

Returns:
Character representation of mode

newInstance

public Mode newInstance()
Description copied from interface: Mode
A Mode can be constructed and asked to make copies of itself.

Returns:
New Mode instance


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.