edu.mit.ai.psg.jevaES
Class JNSSwitchLabel
java.lang.Object
|
+--edu.mit.ai.psg.jevaES.SimpleNode
|
+--edu.mit.ai.psg.jevaES.JevaNode
|
+--edu.mit.ai.psg.jevaES.JNSSwitchLabel
- public class JNSSwitchLabel
- extends JevaNode
- implements JevaESParserConstants
Jeva parse Node for labels within a switch Statement.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998 Massachusetts Institute of Technology
|
Method Summary |
IExpressionNode |
getExpression()
return case expression |
boolean |
isCase()
return true if this is a "case" label (has expression) |
boolean |
isDefault()
return true if this is a "default" label (has no expression) |
isCase
public boolean isCase()
- return true if this is a "case" label (has expression)
isDefault
public boolean isDefault()
- return true if this is a "default" label (has no expression)
getExpression
public IExpressionNode getExpression()
- return case expression