OSDN Git Service

@Override追加
authorOlyutorskii <olyutorskii@users.osdn.me>
Thu, 28 Apr 2011 08:14:16 +0000 (17:14 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Thu, 28 Apr 2011 08:14:16 +0000 (17:14 +0900)
src/main/java/jp/sourceforge/jindolf/parser/AbstractParser.java
src/main/java/jp/sourceforge/jindolf/parser/ContentBuilder.java
src/main/java/jp/sourceforge/jindolf/parser/ContentBuilderSJ.java
src/main/java/jp/sourceforge/jindolf/parser/ContentBuilderUCS2.java
src/main/java/jp/sourceforge/jindolf/parser/DecodeErrorInfo.java
src/main/java/jp/sourceforge/jindolf/parser/DecodedContent.java
src/main/java/jp/sourceforge/jindolf/parser/HtmlAdapter.java

index c992d75..e0b3737 100644 (file)
@@ -114,6 +114,7 @@ public abstract class AbstractParser implements ChainedParser{
      * {@inheritDoc}\r
      * @return {@inheritDoc}\r
      */\r
+    @Override\r
     public DecodedContent getContent(){\r
         if(this.parent != null){\r
             return this.parent.getContent();\r
@@ -126,6 +127,7 @@ public abstract class AbstractParser implements ChainedParser{
      * {@inheritDoc}\r
      * @return {@inheritDoc}\r
      */\r
+    @Override\r
     public Matcher getMatcher(){\r
         if(this.parent != null){\r
             return this.parent.getMatcher();\r
index 2c4edf8..fb505c9 100644 (file)
@@ -48,6 +48,7 @@ public abstract class ContentBuilder implements DecodeHandler{
      * @param decoder {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void startDecoding(CharsetDecoder decoder)\r
             throws DecodeException{\r
         init();\r
@@ -58,6 +59,7 @@ public abstract class ContentBuilder implements DecodeHandler{
      * {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void endDecoding()\r
             throws DecodeException{\r
         flushError();\r
index 25fa5aa..574768f 100644 (file)
@@ -74,6 +74,7 @@ public class ContentBuilderSJ extends ContentBuilder{
      * @param seq {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void charContent(CharSequence seq)\r
             throws DecodeException{\r
         flushError();\r
@@ -88,6 +89,7 @@ public class ContentBuilderSJ extends ContentBuilder{
      * @param length {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void decodingError(byte[] errorArray, int offset, int length)\r
             throws DecodeException{\r
         int limit = offset + length;\r
index 5041ec9..ba48e8c 100644 (file)
@@ -72,6 +72,7 @@ public class ContentBuilderUCS2 extends ContentBuilder{
      * @param seq {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void charContent(CharSequence seq)\r
             throws DecodeException{\r
         flushError();\r
@@ -114,6 +115,7 @@ public class ContentBuilderUCS2 extends ContentBuilder{
      * @param length {@inheritDoc}\r
      * @throws DecodeException {@inheritDoc}\r
      */\r
+    @Override\r
     public void decodingError(byte[] errorArray, int offset, int length)\r
             throws DecodeException{\r
         int limit = offset + length;\r
index 24b848a..b2c664b 100644 (file)
@@ -177,6 +177,7 @@ public class DecodeErrorInfo{
          * @param info2 {@inheritDoc}\r
          * @return {@inheritDoc}\r
          */\r
+        @Override\r
         public int compare(DecodeErrorInfo info1, DecodeErrorInfo info2){\r
             int pos1;\r
             int pos2;\r
index a403486..2d16f00 100644 (file)
@@ -291,6 +291,7 @@ public class DecodedContent
      * @param index {@inheritDoc}\r
      * @return {@inheritDoc}\r
      */\r
+    @Override\r
     public char charAt(int index){\r
         return this.rawContent.charAt(index);\r
     }\r
@@ -299,6 +300,7 @@ public class DecodedContent
      * {@inheritDoc}\r
      * @return {@inheritDoc}\r
      */\r
+    @Override\r
     public int length(){\r
         return this.rawContent.length();\r
     }\r
@@ -309,6 +311,7 @@ public class DecodedContent
      * @param end {@inheritDoc}\r
      * @return {@inheritDoc}\r
      */\r
+    @Override\r
     public CharSequence subSequence(int start, int end){\r
         return this.rawContent.subSequence(start, end);\r
     }\r
index 2aef8fc..7e29e63 100644 (file)
@@ -26,6 +26,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param content {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void startParse(DecodedContent content)\r
             throws HtmlParseException{\r
         return;\r
@@ -37,6 +38,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param titleRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void pageTitle(DecodedContent content, SeqRange titleRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -48,6 +50,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param loginRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void loginName(DecodedContent content, SeqRange loginRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -58,6 +61,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param type {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void pageType(PageType type)\r
             throws HtmlParseException{\r
         return;\r
@@ -69,6 +73,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param villageRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void villageName(DecodedContent content, SeqRange villageRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -82,6 +87,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param minute {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void commitTime(int month, int day, int hour, int minute)\r
             throws HtmlParseException{\r
         return;\r
@@ -95,6 +101,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param day {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void periodLink(DecodedContent content,\r
                             SeqRange anchorRange,\r
                             PeriodType periodType, int day)\r
@@ -112,6 +119,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param state {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void villageRecord(DecodedContent content,\r
                                 SeqRange anchorRange,\r
                                 SeqRange villageRange,\r
@@ -125,6 +133,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void endParse() throws HtmlParseException{\r
         return;\r
     }\r
@@ -133,6 +142,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void startTalk() throws HtmlParseException{\r
         return;\r
     }\r
@@ -141,6 +151,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void endTalk() throws HtmlParseException{\r
         return;\r
     }\r
@@ -150,6 +161,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param talkNo {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkNo(int talkNo) throws HtmlParseException{\r
         return;\r
     }\r
@@ -160,6 +172,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param idRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkId(DecodedContent content, SeqRange idRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -171,6 +184,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkAvatar(DecodedContent content, SeqRange avatarRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -182,6 +196,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param minute {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkTime(int hour, int minute) throws HtmlParseException{\r
         return;\r
     }\r
@@ -192,6 +207,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param urlRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkIconUrl(DecodedContent content, SeqRange urlRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -202,6 +218,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param type {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkType(TalkType type) throws HtmlParseException{\r
         return;\r
     }\r
@@ -212,6 +229,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param textRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkText(DecodedContent content, SeqRange textRange)\r
             throws HtmlParseException{\r
         return;\r
@@ -221,6 +239,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void talkBreak() throws HtmlParseException{\r
         return;\r
     }\r
@@ -230,6 +249,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param eventFamily {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void startSysEvent(EventFamily eventFamily)\r
             throws HtmlParseException{\r
         return;\r
@@ -240,6 +260,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param type {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventType(SysEventType type) throws HtmlParseException{\r
         return;\r
     }\r
@@ -248,6 +269,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void endSysEvent() throws HtmlParseException{\r
         return;\r
     }\r
@@ -259,6 +281,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventOnStage(DecodedContent content,\r
                                   int entryNo,\r
                                   SeqRange avatarRange )\r
@@ -272,6 +295,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param num {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventOpenRole(GameRole role, int num)\r
             throws HtmlParseException{\r
         return;\r
@@ -283,6 +307,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventSurvivor(DecodedContent content,\r
                                    SeqRange avatarRange)\r
             throws HtmlParseException{\r
@@ -296,6 +321,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param voteToRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventCounting(DecodedContent content,\r
                                    SeqRange voteByRange,\r
                                    SeqRange voteToRange )\r
@@ -310,6 +336,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param voteToRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventCounting2(DecodedContent content,\r
                                     SeqRange voteByRange,\r
                                     SeqRange voteToRange )\r
@@ -323,6 +350,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventSuddenDeath(DecodedContent content,\r
                                        SeqRange avatarRange )\r
             throws HtmlParseException{\r
@@ -335,6 +363,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventMurdered(DecodedContent content,\r
                                    SeqRange avatarRange )\r
             throws HtmlParseException{\r
@@ -351,6 +380,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param role {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventPlayerList(DecodedContent content,\r
                                      SeqRange avatarRange,\r
                                      SeqRange anchorRange,\r
@@ -368,6 +398,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param votes {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventExecution(DecodedContent content,\r
                                     SeqRange avatarRange,\r
                                     int votes )\r
@@ -381,6 +412,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventVanish(DecodedContent content,\r
                                  SeqRange avatarRange )\r
             throws HtmlParseException{\r
@@ -393,6 +425,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventCheckout(DecodedContent content,\r
                                    SeqRange avatarRange )\r
             throws HtmlParseException{\r
@@ -406,6 +439,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param judgeToRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventJudge(DecodedContent content,\r
                                 SeqRange judgeByRange,\r
                                 SeqRange judgeToRange )\r
@@ -420,6 +454,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param guardToRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventGuard(DecodedContent content,\r
                                 SeqRange guardByRange,\r
                                 SeqRange guardToRange )\r
@@ -435,6 +470,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param maxLimit {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventAskEntry(int hour, int minute,\r
                                    int minLimit, int maxLimit)\r
             throws HtmlParseException{\r
@@ -447,6 +483,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param minute {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventAskCommit(int hour, int minute)\r
             throws HtmlParseException{\r
         return;\r
@@ -458,6 +495,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param avatarRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventNoComment(DecodedContent content,\r
                                     SeqRange avatarRange )\r
             throws HtmlParseException{\r
@@ -471,6 +509,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param minute {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventStayEpilogue(Team winner, int hour, int minute)\r
             throws HtmlParseException{\r
         return;\r
@@ -482,6 +521,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param contentRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventContent(DecodedContent content,\r
                                   SeqRange contentRange )\r
             throws HtmlParseException{\r
@@ -492,6 +532,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventContentBreak() throws HtmlParseException{\r
         return;\r
     }\r
@@ -503,6 +544,7 @@ public abstract class HtmlAdapter implements HtmlHandler{
      * @param contentRange {@inheritDoc}\r
      * @throws HtmlParseException {@inheritDoc}\r
      */\r
+    @Override\r
     public void sysEventContentAnchor(DecodedContent content,\r
                                          SeqRange anchorRange,\r
                                          SeqRange contentRange )\r