//# 3 errors, 136 messages
//#
/*
    //#ProcessNoticeAuth.java:1:1: class: com.dmdirc.parser.irc.ProcessNoticeAuth
    //#ProcessNoticeAuth.java:1:1: method: com.dmdirc.parser.irc.ProcessNoticeAuth.com.dmdirc.parser.irc.ProcessNoticeAuth__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package com.dmdirc.parser.irc;

/**
 * Process a NoticeAuth message.
 */
public class ProcessNoticeAuth extends IRCProcessor {
	/**
	 * Process a NoticeAuth message.
	 *
	 * @param sParam Type of line to process ("Notice Auth")
	 * @param token IRCTokenised line to process
	 */
	@Override
	public void process(final String sParam, final String[] token) {
		callNoticeAuth(token[token.length-1]);
    //#ProcessNoticeAuth.java:37: method: void com.dmdirc.parser.irc.ProcessNoticeAuth.process(String, String[])
    //#input(void process(String, String[])): "Callback not found: "._tainted
    //#input(void process(String, String[])): "OnNoticeAuth"._tainted
    //#input(void process(String, String[])): __Descendant_Table[com/dmdirc/parser/irc/ProcessNoticeAuth]
    //#input(void process(String, String[])): __Descendant_Table[others]
    //#input(void process(String, String[])): __Dispatch_Table.callNoticeAuth(Ljava/lang/String;)Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[com/dmdirc/parser/irc/IRCParser]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObject]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[others]
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObject.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(void process(String, String[])): com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(void process(String, String[])): this
    //#input(void process(String, String[])): this.__Tag
    //#input(void process(String, String[])): this.myParser
    //#input(void process(String, String[])): this.myParser.__Tag
    //#input(void process(String, String[])): this.myParser.myCallbackManager
    //#input(void process(String, String[])): this.myParser.myCallbackManager.callbackHash
    //#input(void process(String, String[])): token
    //#input(void process(String, String[])): token.length
    //#input(void process(String, String[])): token[0..4_294_967_295]
    //#pre[2] (void process(String, String[])): this.__Tag == com/dmdirc/parser/irc/ProcessNoticeAuth
    //#pre[3] (void process(String, String[])): this.myParser != null
    //#pre[4] (void process(String, String[])): this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[5] (void process(String, String[])): this.myParser.myCallbackManager != null
    //#pre[6] (void process(String, String[])): this.myParser.myCallbackManager.callbackHash != null
    //#pre[7] (void process(String, String[])): token != null
    //#pre[8] (void process(String, String[])): token.length in {1..4_294_967_296}
    //#pre[9] (void process(String, String[])): (soft) init'ed(token[0..4_294_967_295])
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getCallbackManager
    //#unanalyzed(void process(String, String[])): Effects-of-calling:getCallbackType
    //#unanalyzed(void process(String, String[])): Effects-of-calling:call
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.lang.RuntimeException
    //#unanalyzed(void process(String, String[])): Effects-of-calling:java.util.Map:get
	}
    //#ProcessNoticeAuth.java:38: end of method: void com.dmdirc.parser.irc.ProcessNoticeAuth.process(String, String[])
	
	/**
	 * Callback to all objects implementing the NoticeAuth Callback.
	 *
	 * @see INoticeAuth
	 * @param data Incomming Line.
	 * @return true if a method was called, false otherwise
	 */
	protected boolean callNoticeAuth(final String data) {
		return getCallbackManager().getCallbackType("OnNoticeAuth").call(data);
    //#ProcessNoticeAuth.java:48: method: bool com.dmdirc.parser.irc.ProcessNoticeAuth.callNoticeAuth(String)
    //#ProcessNoticeAuth.java:48: ?null dereference
    //#    getCallbackType(...) != null
    //#    severity: MEDIUM
    //#    class: com.dmdirc.parser.irc.ProcessNoticeAuth
    //#    method: bool callNoticeAuth(String)
    //#    basic block: Entry_BB_1
    //#    assertion: getCallbackType(...) != null
    //#    VN: getCallbackType(...)
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#ProcessNoticeAuth.java:48: ?use of default init
    //#    init'ed(getCallbackType(...).__Tag)
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessNoticeAuth
    //#    method: bool callNoticeAuth(String)
    //#    basic block: Entry_BB_1
    //#    assertion: init'ed(getCallbackType(...).__Tag)
    //#    VN: getCallbackType(...).__Tag
    //#    Expected: {-Inf..+Inf}
    //#    Bad: {Invalid}
    //#    Attribs:  Int  Bad only invalid
    //#ProcessNoticeAuth.java:48: ?null dereference
    //#    com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag] != null
    //#    severity: SUPPRESSED
    //#    class: com.dmdirc.parser.irc.ProcessNoticeAuth
    //#    method: bool callNoticeAuth(String)
    //#    basic block: Entry_BB_1
    //#    assertion: com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag] != null
    //#    VN: com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[getCallbackType(...).__Tag]
    //#    Expected: Inverse{null}
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#ProcessNoticeAuth.java:48: Warning: call too complex - analysis skipped
    //#    call on bool call(Object[])
    //#    severity: INFORMATIONAL
    //#    class: com.dmdirc.parser.irc.ProcessNoticeAuth
    //#    method: bool callNoticeAuth(String)
    //#    unanalyzed callee: bool call(Object[])
    //#input(bool callNoticeAuth(String)): "Callback not found: "._tainted
    //#input(bool callNoticeAuth(String)): "OnNoticeAuth"._tainted
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[com/dmdirc/parser/irc/IRCParser]
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/IRCParser.__Descendant_Table[others]
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/IRCParser.__Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific]
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[com/dmdirc/parser/irc/callbacks/CallbackObject]
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Descendant_Table[others]
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/callbacks/CallbackObject.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callNoticeAuth(String)): com/dmdirc/parser/irc/callbacks/CallbackObjectSpecific.__Dispatch_Table.call([Ljava/lang/Object;)Z
    //#input(bool callNoticeAuth(String)): data
    //#input(bool callNoticeAuth(String)): this
    //#input(bool callNoticeAuth(String)): this.myParser
    //#input(bool callNoticeAuth(String)): this.myParser.__Tag
    //#input(bool callNoticeAuth(String)): this.myParser.myCallbackManager
    //#input(bool callNoticeAuth(String)): this.myParser.myCallbackManager.callbackHash
    //#output(bool callNoticeAuth(String)): return_value
    //#pre[3] (bool callNoticeAuth(String)): this.myParser != null
    //#pre[4] (bool callNoticeAuth(String)): this.myParser.__Tag == com/dmdirc/parser/irc/IRCParser
    //#pre[5] (bool callNoticeAuth(String)): this.myParser.myCallbackManager != null
    //#pre[6] (bool callNoticeAuth(String)): this.myParser.myCallbackManager.callbackHash != null
    //#post(bool callNoticeAuth(String)): init'ed(return_value)
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:getCallbackManager
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.util.Map:containsKey
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.lang.String:toLowerCase
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.lang.RuntimeException
    //#unanalyzed(bool callNoticeAuth(String)): Effects-of-calling:java.util.Map:get
    //#ProcessNoticeAuth.java:48: end of method: bool com.dmdirc.parser.irc.ProcessNoticeAuth.callNoticeAuth(String)
	}
	
	/**
	 * What does this IRCProcessor handle.
	 *
	 * @return String[] with the names of the tokens we handle.
	 */
	@Override
	public String[] handles() {
		return new String[]{"Notice Auth"};
    //#ProcessNoticeAuth.java:58: method: String[] com.dmdirc.parser.irc.ProcessNoticeAuth.handles()
    //#output(String[] handles()): new String[](handles#1) num objects
    //#output(String[] handles()): return_value.length
    //#output(String[] handles()): return_value[0]
    //#output(String[] handles()): return_value
    //#new obj(String[] handles()): new String[](handles#1)
    //#post(String[] handles()): return_value == &new String[](handles#1)
    //#post(String[] handles()): new String[](handles#1) num objects == 1
    //#post(String[] handles()): return_value.length == 1
    //#post(String[] handles()): return_value[0] == &"Notice Auth"
    //#ProcessNoticeAuth.java:58: end of method: String[] com.dmdirc.parser.irc.ProcessNoticeAuth.handles()
	} 
	
	/**
	 * Create a new instance of the ProcessNoticeAuth Object.
	 *
	 * @param parser IRCParser That owns this object
	 * @param manager ProcessingManager that is in charge of this object
	 */
	protected ProcessNoticeAuth (final IRCParser parser, final ProcessingManager manager) { super(parser, manager); }
    //#ProcessNoticeAuth.java:67: method: void com.dmdirc.parser.irc.ProcessNoticeAuth.com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)
    //#input(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): manager
    //#input(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): parser
    //#input(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): this
    //#output(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): this.myManager
    //#output(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): this.myParser
    //#post(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): this.myManager == manager
    //#post(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): init'ed(this.myManager)
    //#post(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): this.myParser == parser
    //#post(void com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)): init'ed(this.myParser)
    //#ProcessNoticeAuth.java:67: end of method: void com.dmdirc.parser.irc.ProcessNoticeAuth.com.dmdirc.parser.irc.ProcessNoticeAuth(IRCParser, ProcessingManager)

}
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Descendant_Table[com/dmdirc/parser/irc/ProcessNoticeAuth]
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;)Z
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;[Ljava/lang/Object;)Z
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callErrorInfo(Lcom/dmdirc/parser/irc/ParserError;)Z
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callNoticeAuth(Ljava/lang/String;)Z
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getChannelInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ChannelInfo;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getClientInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ClientInfo;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getLowerName()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.handles()[Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.isValidChannelName(Ljava/lang/String;)Z
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.process(Ljava/lang/String;[Ljava/lang/String;)V
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.sendString(Ljava/lang/String;)V
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.toString()Ljava/lang/String;
    //#output(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): com/dmdirc/parser/irc/IRCProcessor.__Descendant_Table[com/dmdirc/parser/irc/ProcessNoticeAuth]
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Descendant_Table[com/dmdirc/parser/irc/ProcessNoticeAuth] == &__Dispatch_Table
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): com/dmdirc/parser/irc/IRCProcessor.__Descendant_Table[com/dmdirc/parser/irc/ProcessNoticeAuth] == &__Dispatch_Table
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;)Z == &com/dmdirc/parser/irc/IRCProcessor.callDebugInfo
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callDebugInfo(ILjava/lang/String;[Ljava/lang/Object;)Z == &com/dmdirc/parser/irc/IRCProcessor.callDebugInfo
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callErrorInfo(Lcom/dmdirc/parser/irc/ParserError;)Z == &com/dmdirc/parser/irc/IRCProcessor.callErrorInfo
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.callNoticeAuth(Ljava/lang/String;)Z == &callNoticeAuth
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getCallbackManager()Lcom/dmdirc/parser/irc/callbacks/CallbackManager; == &com/dmdirc/parser/irc/IRCProcessor.getCallbackManager
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getChannelInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ChannelInfo; == &com/dmdirc/parser/irc/IRCProcessor.getChannelInfo
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getClientInfo(Ljava/lang/String;)Lcom/dmdirc/parser/irc/ClientInfo; == &com/dmdirc/parser/irc/IRCProcessor.getClientInfo
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getLowerName()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.getLowerName
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.getName
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.handles()[Ljava/lang/String; == &handles
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.isValidChannelName(Ljava/lang/String;)Z == &com/dmdirc/parser/irc/IRCProcessor.isValidChannelName
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.process(Ljava/lang/String;[Ljava/lang/String;)V == &process
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.sendString(Ljava/lang/String;)V == &com/dmdirc/parser/irc/IRCProcessor.sendString
    //#post(com.dmdirc.parser.irc.ProcessNoticeAuth__static_init): __Dispatch_Table.toString()Ljava/lang/String; == &com/dmdirc/parser/irc/IRCProcessor.toString
    //#ProcessNoticeAuth.java:: end of method: com.dmdirc.parser.irc.ProcessNoticeAuth.com.dmdirc.parser.irc.ProcessNoticeAuth__static_init
    //#ProcessNoticeAuth.java:: end of class: com.dmdirc.parser.irc.ProcessNoticeAuth
