Gridarta Editor
LineInfo.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.textedit.textarea.tokenmarker;
21 
27 public class LineInfo {
28 
32  public LineInfo() {
33  }
34 
38  public LineInfo(final byte token, final Object obj) {
39  this.token = token;
40  this.obj = obj;
41  }
42 
46  private byte token;
47 
53  private Object obj;
54 
55  public byte getToken() {
56  return token;
57  }
58 
59  public void setToken(final byte token) {
60  this.token = token;
61  }
62 
63  public Object getObj() {
64  return obj;
65  }
66 
67  public void setObj(final Object obj) {
68  this.obj = obj;
69  }
70 
71 }
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.getToken
byte getToken()
Definition: LineInfo.java:55
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.setObj
void setObj(final Object obj)
Definition: LineInfo.java:67
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.token
byte token
The id of the last token of the line.
Definition: LineInfo.java:46
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.obj
Object obj
This is for use by the token marker implementations themselves.
Definition: LineInfo.java:53
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.setToken
void setToken(final byte token)
Definition: LineInfo.java:59
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.getObj
Object getObj()
Definition: LineInfo.java:63
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.LineInfo
LineInfo()
Creates a new LineInfo object with token = Token.NULL and obj = null.
Definition: LineInfo.java:32
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo
Stores information about tokenized lines.
Definition: LineInfo.java:27
net.sf.gridarta.textedit.textarea.tokenmarker.LineInfo.LineInfo
LineInfo(final byte token, final Object obj)
Creates a new LineInfo object with the specified parameters.
Definition: LineInfo.java:38