|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ast.Ext_c jif.ast.Jif_c jif.extension.JifFormalExt
public class JifFormalExt
The Jif extension of the Formal
node.
Formal
Nested Class Summary | |
---|---|
protected static class |
JifFormalExt.FormalVarianceLabelChecker
Checker to ensure that labels do not use covariant labels in the wrong places |
protected static class |
JifFormalExt.FormalVarianceLabelSubstr
Visitor to ensure that labels do not use covariant labels in the wrong places |
Field Summary |
---|
Fields inherited from class jif.ast.Jif_c |
---|
toJava, X |
Fields inherited from class polyglot.ast.Ext_c |
---|
ext, node |
Constructor Summary | |
---|---|
JifFormalExt(ToJavaExt toJava)
|
Method Summary | |
---|---|
protected void |
checkVariance(LabelChecker lc,
polyglot.ast.Formal f)
Ensure that covariant labels do not occur in the type of the formal for methods. |
polyglot.ast.Node |
labelCheck(LabelChecker lc)
Label check the node to which this extension is attached. |
Methods inherited from class jif.ast.Jif_c |
---|
checkAndRemoveThrowType, checkThrowTypes, copy, getPathMap, init, integerBoundsCalculated, toJava, toJava, updatePathMap, X, X |
Methods inherited from class polyglot.ast.Ext_c |
---|
dump, ext, ext, node, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface polyglot.ast.Ext |
---|
dump, ext, ext, node |
Constructor Detail |
---|
public JifFormalExt(ToJavaExt toJava)
Method Detail |
---|
public polyglot.ast.Node labelCheck(LabelChecker lc) throws polyglot.types.SemanticException
Jif
labelCheck
in interface Jif
labelCheck
in class Jif_c
polyglot.types.SemanticException
protected void checkVariance(LabelChecker lc, polyglot.ast.Formal f) throws polyglot.types.SemanticException
lc
- f
-
polyglot.types.SemanticException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |