public class JL7CaseExt extends JL7Ext implements JL5CaseOps
Constructor and Description |
---|
JL7CaseExt() |
Modifier and Type | Method and Description |
---|---|
Node |
checkConstants(ConstantChecker cc)
Check if the node is a compile-time constant.
|
Case |
resolveCaseLabel(TypeChecker tc,
Type switchType) |
Node |
typeCheck(TypeChecker tc)
Type check the AST.
|
addDecls, buildTypes, buildTypesEnter, childExpectedType, copy, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, ext, ext, extRewrite, extRewriteEnter, init, initPred, node, pred, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, superLang, throwTypes, toString, translate, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
public Case resolveCaseLabel(TypeChecker tc, Type switchType) throws SemanticException
resolveCaseLabel
in interface JL5CaseOps
SemanticException
public Node typeCheck(TypeChecker tc) throws SemanticException
NodeOps
leave()
method of the
visitor. The method should perform work that should be done
after visiting the children of the node. The method may return
this
or a new copy of the node which will be
installed as a child of the node's parent.typeCheck
in interface NodeOps
typeCheck
in class Ext_c
tc
- The type checking visitor.SemanticException
public Node checkConstants(ConstantChecker cc) throws SemanticException
NodeOps
leave()
method of the
visitor. The method should perform work that should be done
after visiting the children of the node. The method may return
this
or a new copy of the node which will be
installed as a child of the node's parent.checkConstants
in interface NodeOps
checkConstants
in class Ext_c
cc
- The constant checking visitor.SemanticException