Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
static int |
LIKELY_ERRORS |
|
static int |
NONE |
|
static int |
PARANOIA |
|
static int |
POSSIBLE_ERRORS |
Fields inherited from class | Fields |
---|---|
class LocatedMessage |
context |
class SimpleMessage |
data, message, owner |
Constructor and description |
---|
WarningMessage
(int importance, String message, CSTNode context, SourceUnit owner) Creates a new warning message. |
WarningMessage
(int importance, String message, Object data, CSTNode context, SourceUnit owner) Creates a new warning message. |
Type | Name and description |
---|---|
static boolean |
isRelevant(int actual, int limit) Returns true if a warning would be relevant to the specified level. |
boolean |
isRelevant(int importance) Returns true if this message is as or more important than the specified importance level. |
void |
write(PrintWriter writer, Janitor janitor) |
Creates a new warning message.
importance
- the warning levelmessage
- the message textcontext
- context information for locating the offending source textCreates a new warning message.
importance
- the warning levelmessage
- the message textdata
- additional data needed when generating the messagecontext
- context information for locating the offending source textReturns true if a warning would be relevant to the specified level.
Returns true if this message is as or more important than the specified importance level.
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.