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

Fields inherited from class edu.mit.ai.psg.jevaES.SimpleNode
children, id, parent
 
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)
 
Methods inherited from class edu.mit.ai.psg.jevaES.JevaNode
getBeginToken, getEndToken, print, print, printToken, printToString, printToString, setBeginToken, setEndToken
 
Methods inherited from class edu.mit.ai.psg.jevaES.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu