jif.ast
Class AmbThisLabelNode_c

java.lang.Object
  extended bypolyglot.ext.jl.ast.Node_c
      extended byjif.ast.LabelNode_c
          extended byjif.ast.AmbLabelNode_c
              extended byjif.ast.AmbThisLabelNode_c
All Implemented Interfaces:
polyglot.ast.Ambiguous, AmbThisLabelNode, java.lang.Cloneable, polyglot.util.Copy, polyglot.ast.JL, LabelNode, polyglot.ast.Node, polyglot.ast.NodeOps, ParamNode

public class AmbThisLabelNode_c
extends AmbLabelNode_c
implements AmbThisLabelNode

An implementation of the AmbThisLabelNode interface.


Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
 
Constructor Summary
AmbThisLabelNode_c(polyglot.util.Position pos)
           
 
Method Summary
 polyglot.ast.Node disambiguate(polyglot.visit.AmbiguityRemover sc)
          Disambiguates the type of this node by finding the correct label for "this".
 void prettyPrint(polyglot.util.CodeWriter w, polyglot.visit.PrettyPrinter tr)
           
 java.lang.String toString()
           
 
Methods inherited from class jif.ast.LabelNode_c
label, label, parameter
 
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypes, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguateEnter, disambiguateOverride, dump, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, foldConstants, foldConstantsEnter, foldConstantsOverride, init, node, position, position, print, printBlock, printSubStmt, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jif.ast.LabelNode
label, label
 
Methods inherited from interface jif.ast.ParamNode
parameter
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, foldConstants, foldConstantsEnter, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

AmbThisLabelNode_c

public AmbThisLabelNode_c(polyglot.util.Position pos)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class LabelNode_c

disambiguate

public polyglot.ast.Node disambiguate(polyglot.visit.AmbiguityRemover sc)
                               throws polyglot.types.SemanticException
Disambiguates the type of this node by finding the correct label for "this".

Specified by:
disambiguate in interface polyglot.ast.NodeOps
Specified by:
disambiguate in class AmbLabelNode_c
Throws:
polyglot.types.SemanticException

prettyPrint

public void prettyPrint(polyglot.util.CodeWriter w,
                        polyglot.visit.PrettyPrinter tr)
Specified by:
prettyPrint in interface polyglot.ast.NodeOps