|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectescjava.translate.NoWarn
Handles turning off warnings.
Field Summary | |
private static int[] |
chkStatus
* Global nowarns: * * |
static int |
globalStatus
|
private static LexicalPragmaVec |
nowarns
* Registering nowarns annotations and checking * that they are legal ones |
private static int |
noWarnStreamId
The line # and streamId to nowarn before (cf. setStartLine). |
private static int |
startLine
|
static boolean |
useGlobalStatus
|
Constructor Summary | |
NoWarn()
|
Method Summary | |
(package private) static boolean |
beforeLine(int loc,
int lineNo,
int streamId)
Is a given line # in a given stream (id) before (exclusive) the line that contains a given location? |
static int |
getChkStatus(int tag)
|
static int |
getChkStatus(int tag,
int locUse,
int locPragmaDecl)
Returns how the check tag should be interpreted. |
static void |
init()
|
(package private) static boolean |
inRange(int startLoc,
int endLoc,
int lineNo,
int streamId)
Is a given line # in a given stream (id) between the lines that contain the two given locations (inclusive)? |
(package private) static boolean |
onLine(int loc,
int lineNo,
int streamId)
Is loc on a given line number in a given stream? |
static void |
registerNowarns(LexicalPragmaVec v)
|
static void |
setAllChkStatus(int status)
|
static void |
setChkStatus(int tag,
int status)
Sets how the check tag should be interpreted. |
static void |
setStartLine(int line,
CompilationUnit cu)
Set a nowarn to ignore all lines before a given line in a given CompilationUnit. |
static int |
toNoWarnTag(java.lang.String name)
Convert a nowarn category to its tag. |
static void |
typecheckRegisteredNowarns()
Type checks the registered nowarn pragmas, reporting errors to ErrorSet appropriately. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int[] chkStatus
public static boolean useGlobalStatus
public static int globalStatus
private static int noWarnStreamId
private static int startLine
private static LexicalPragmaVec nowarns
Constructor Detail |
public NoWarn()
Method Detail |
public static void init()
public static void setAllChkStatus(int status)
public static void setChkStatus(int tag, int status)
public static int getChkStatus(int tag)
public static int toNoWarnTag(java.lang.String name)
public static void setStartLine(int line, CompilationUnit cu)
Future calls to this routine remove any previous nowarns established via this routine.
line
- passing a line # of -1 acts as a no-op nowarn.public static void registerNowarns(LexicalPragmaVec v)
public static void typecheckRegisteredNowarns()
ErrorSet
appropriately.
static boolean onLine(int loc, int lineNo, int streamId)
loc
on a given line number in a given stream?
loc
- may be Location.NULL
, in which case
false
is returned.static boolean beforeLine(int loc, int lineNo, int streamId)
loc
- if Location.NULL, then no is returned.static boolean inRange(int startLoc, int endLoc, int lineNo, int streamId)
startLoc
- endLoc
- lineNo
- streamId
- public static int getChkStatus(int tag, int locUse, int locPragmaDecl)
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |