Gridarta Editor
Parameter.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 
26 public class Parameter {
27 
31  private final String name;
32 
36  private final byte id;
37 
42 
49  public Parameter(final String name, final byte id, final ParameterType parameterType) {
50  this.name = name;
51  this.id = id;
52  this.parameterType = parameterType;
53  }
54 
59  public String getName() {
60  return name;
61  }
62 
67  public byte getId() {
68  return id;
69  }
70 
76  return parameterType;
77  }
78 
79 }
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.parameterType
final ParameterType parameterType
The parameter type for the value of this parameter.
Definition: Parameter.java:41
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.id
final byte id
The token id used to highlight the parameter name.
Definition: Parameter.java:36
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.getName
String getName()
Returns the parameter name.
Definition: Parameter.java:59
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.Parameter
Parameter(final String name, final byte id, final ParameterType parameterType)
Creates a new instance.
Definition: Parameter.java:49
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter
Describes a parameter.
Definition: Parameter.java:26
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.getParameterType
ParameterType getParameterType()
Returns the parameter type for the value of this parameter.
Definition: Parameter.java:75
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.getId
byte getId()
Returns the token id used to highlight the parameter name.
Definition: Parameter.java:67
net.sf.gridarta.textedit.textarea.tokenmarker.Parameter.name
final String name
The parameter name.
Definition: Parameter.java:31
net.sf.gridarta.textedit.textarea.tokenmarker.ParameterType
Describes a parameter type.
Definition: ParameterType.java:28