📄 parsernotice.java
字号:
/*
* 09/23/2005
*
* ParserNotice.java - A notice (i.e, and error or warning) from a parser.
* Copyright (C) 2005 Robert Futrell
* email@address.com
* www.website.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package org.fife.compiler;
/**
* A notice (e.g., a warning or error) from a parser.
*
* @author Robert Futrell
* @version 0.1
*/
public class ParserNotice {
private int start;
private int length;
private String message;
/*****************************************************************************/
/**
* Constructor.
*
* @param message The message.
* @param start The starting index in the input stream of the code the
* message is concerned with.
* @param length The length of the code the message is concerned with.
*/
public ParserNotice(String message, int start, int length) {
this.message = message;
this.start = start;
this.length = length;
}
/*****************************************************************************/
/**
* Returns the length of the code the message is concerned with.
*
* @return The length of the code the message is concerned with.
*/
public int getLength() {
return length;
}
/*****************************************************************************/
/**
* Returns the message from the parser.
*
* @return The message from the parser.
*/
public String getMessage() {
return message;
}
/*****************************************************************************/
/**
* Returns the starting index of the code the message is concerned with.
*
* @return The starting index.
*/
public int getStart() {
return start;
}
/*****************************************************************************/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -