jltools.ext.jl.ast
Class Branch_c
java.lang.Object
|
+--jltools.ext.jl.ast.Node_c
|
+--jltools.ext.jl.ast.Stmt_c
|
+--jltools.ext.jl.ast.Branch_c
- All Implemented Interfaces:
- Branch, java.lang.Cloneable, Copy, Node, java.io.Serializable, Stmt
- public class Branch_c
- extends Stmt_c
- implements Branch
A Branch
is an immutable representation of a branch
statment in Java (a break or continue).
- See Also:
- Serialized Form
Methods inherited from class jltools.ext.jl.ast.Node_c |
buildTypes_, buildTypes, buildTypesOverride_, buildTypesOverride, copy, disambiguate_, disambiguate, disambiguateOverride_, disambiguateOverride, disambiguateTypes_, disambiguateTypes, disambiguateTypesOverride_, disambiguateTypesOverride, dump, enterScope, exceptionCheck_, exceptionCheck, exceptionCheckOverride_, exceptionCheckOverride, ext, ext, foldConstants_, foldConstants, foldConstantsOverride_, foldConstantsOverride, leaveScope, position, position, reconstructTypes_, reconstructTypes, translate, translateBlock, translateSubstmt, typeCheck_, typeCheck, typeCheckOverride_, typeCheckOverride, visit, visitChildren, visitList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jltools.ast.Node |
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, typeCheck_, typeCheckOverride_, visit, visitChildren |
kind
protected Branch.Kind kind
label
protected java.lang.String label
Branch_c
public Branch_c(Ext ext,
Position pos,
Branch.Kind kind,
java.lang.String label)
kind
public Branch.Kind kind()
- Get the kind of the branch.
- Specified by:
kind
in interface Branch
kind
public Branch kind(Branch.Kind kind)
- Set the kind of the branch.
- Specified by:
kind
in interface Branch
label
public java.lang.String label()
- Get the target label of the branch.
- Specified by:
label
in interface Branch
label
public Branch label(java.lang.String label)
- Set the target label of the branch.
- Specified by:
label
in interface Branch
toString
public java.lang.String toString()
- Overrides:
toString
in class Node_c
translate_
public void translate_(CodeWriter w,
Translator tr)
- Write the expression to an output file.
- Specified by:
translate_
in interface Node
- Overrides:
translate_
in class Node_c
- Following copied from interface:
jltools.ast.Node
- Parameters:
w
- The code writer to which to write.tr
- The translation pass. This is not a visitor.