jerklib.events
Enum IRCEvent.Type

java.lang.Object
  extended by java.lang.Enum<IRCEvent.Type>
      extended by jerklib.events.IRCEvent.Type
All Implemented Interfaces:
Serializable, Comparable<IRCEvent.Type>
Enclosing interface:
IRCEvent

public static enum IRCEvent.Type
extends Enum<IRCEvent.Type>

Type enum is used to determine type. It is returned from getType()


Enum Constant Summary
AWAY_EVENT
           
CHANNEL_LIST_EVENT
           
CHANNEL_MESSAGE
          Channel message event - msg sent to a channel
CONNECT_COMPLETE
           
CONNECTION_LOST
           
CTCP_EVENT
           
DCC_EVENT
          a DCC Event.
DEFAULT
          Default event - unreconized or ignored by JerkLib
ERROR
           
EXCEPTION
          unused
INVITE_EVENT
           
JOIN
          Join event - someone joins a channel
JOIN_COMPLETE
           
KICK_EVENT
           
MODE_EVENT
           
MOTD
          Message of the day event
NICK_CHANGE
          Nick change event - someones nick changed
NICK_IN_USE
          Nick in use event - The nick JerkLib is tring to use is in use
NICK_LIST_EVENT
           
NOTICE
          Server notice event
PART
          Part event - someone parts a channel
PRIVATE_MESSAGE
          Private message event - msg not sent to channel
QUIT
          Quit Event - when someone quits from a server
SERVER_INFORMATION
          Event spawned from irc numeric 005
SERVER_VERSION_EVENT
           
TOPIC
          Topic event - channel topic event
UPDATE_HOST_NAME
           
WHO_EVENT
           
WHOIS_EVENT
           
WHOWAS_EVENT
           
 
Method Summary
static IRCEvent.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IRCEvent.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOPIC

public static final IRCEvent.Type TOPIC
Topic event - channel topic event


PRIVATE_MESSAGE

public static final IRCEvent.Type PRIVATE_MESSAGE
Private message event - msg not sent to channel


CHANNEL_MESSAGE

public static final IRCEvent.Type CHANNEL_MESSAGE
Channel message event - msg sent to a channel


NOTICE

public static final IRCEvent.Type NOTICE
Server notice event


MOTD

public static final IRCEvent.Type MOTD
Message of the day event


DEFAULT

public static final IRCEvent.Type DEFAULT
Default event - unreconized or ignored by JerkLib


QUIT

public static final IRCEvent.Type QUIT
Quit Event - when someone quits from a server


PART

public static final IRCEvent.Type PART
Part event - someone parts a channel


JOIN

public static final IRCEvent.Type JOIN
Join event - someone joins a channel


NICK_CHANGE

public static final IRCEvent.Type NICK_CHANGE
Nick change event - someones nick changed


NICK_IN_USE

public static final IRCEvent.Type NICK_IN_USE
Nick in use event - The nick JerkLib is tring to use is in use


EXCEPTION

public static final IRCEvent.Type EXCEPTION
unused


SERVER_INFORMATION

public static final IRCEvent.Type SERVER_INFORMATION
Event spawned from irc numeric 005


CONNECT_COMPLETE

public static final IRCEvent.Type CONNECT_COMPLETE

UPDATE_HOST_NAME

public static final IRCEvent.Type UPDATE_HOST_NAME

JOIN_COMPLETE

public static final IRCEvent.Type JOIN_COMPLETE

MODE_EVENT

public static final IRCEvent.Type MODE_EVENT

KICK_EVENT

public static final IRCEvent.Type KICK_EVENT

NICK_LIST_EVENT

public static final IRCEvent.Type NICK_LIST_EVENT

WHO_EVENT

public static final IRCEvent.Type WHO_EVENT

WHOIS_EVENT

public static final IRCEvent.Type WHOIS_EVENT

WHOWAS_EVENT

public static final IRCEvent.Type WHOWAS_EVENT

CHANNEL_LIST_EVENT

public static final IRCEvent.Type CHANNEL_LIST_EVENT

INVITE_EVENT

public static final IRCEvent.Type INVITE_EVENT

SERVER_VERSION_EVENT

public static final IRCEvent.Type SERVER_VERSION_EVENT

AWAY_EVENT

public static final IRCEvent.Type AWAY_EVENT

ERROR

public static final IRCEvent.Type ERROR

CTCP_EVENT

public static final IRCEvent.Type CTCP_EVENT

CONNECTION_LOST

public static final IRCEvent.Type CONNECTION_LOST

DCC_EVENT

public static final IRCEvent.Type DCC_EVENT
a DCC Event.

Method Detail

values

public static IRCEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IRCEvent.Type c : IRCEvent.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IRCEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null