public class ParamDecl_c extends polyglot.ast.Node_c implements ParamDecl
ParamDecl
interface.Constructor and Description |
---|
ParamDecl_c(polyglot.util.Position pos,
ParamInstance.Kind kind,
polyglot.ast.Id name) |
ParamDecl_c(polyglot.util.Position pos,
ParamInstance.Kind kind,
polyglot.ast.Id name,
polyglot.ast.Ext ext) |
Modifier and Type | Method and Description |
---|---|
polyglot.ast.Node |
buildTypes(polyglot.visit.TypeBuilder tb) |
boolean |
isCovariantLabel() |
boolean |
isDisambiguated() |
boolean |
isInvariantLabel() |
boolean |
isLabel() |
boolean |
isPrincipal() |
ParamInstance.Kind |
kind() |
ParamDecl |
kind(ParamInstance.Kind kind) |
void |
leaveScope(polyglot.types.Context c) |
java.lang.String |
name() |
ParamDecl |
name(java.lang.String name) |
ParamInstance |
paramInstance() |
ParamDecl |
paramInstance(ParamInstance pi) |
void |
prettyPrint(polyglot.util.CodeWriter w,
polyglot.visit.PrettyPrinter tr) |
java.lang.String |
toString() |
void |
translate(polyglot.util.CodeWriter w,
polyglot.visit.Translator tr) |
addDecls, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copy, copyIfNeeded, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, dump, enterChildScope, enterScope, error, error, error, exceptionCheck, exceptionCheckEnter, ext, ext, ext, ext, extRewrite, extRewriteEnter, extRewriteOverride, isTypeChecked, lang, position, position, position, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
del, del, dump, error, error, ext, ext, ext, ext, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, extRewriteOverride, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
public ParamDecl_c(polyglot.util.Position pos, ParamInstance.Kind kind, polyglot.ast.Id name)
public ParamDecl_c(polyglot.util.Position pos, ParamInstance.Kind kind, polyglot.ast.Id name, polyglot.ast.Ext ext)
public boolean isDisambiguated()
isDisambiguated
in interface polyglot.ast.Node
isDisambiguated
in class polyglot.ast.Node_c
public ParamInstance.Kind kind()
public ParamDecl kind(ParamInstance.Kind kind)
public ParamInstance paramInstance()
paramInstance
in interface ParamDecl
public ParamDecl paramInstance(ParamInstance pi)
paramInstance
in interface ParamDecl
public boolean isPrincipal()
isPrincipal
in interface ParamDecl
public boolean isInvariantLabel()
isInvariantLabel
in interface ParamDecl
public boolean isCovariantLabel()
isCovariantLabel
in interface ParamDecl
public void leaveScope(polyglot.types.Context c)
public polyglot.ast.Node buildTypes(polyglot.visit.TypeBuilder tb)
buildTypes
in interface polyglot.ast.NodeOps
buildTypes
in class polyglot.ast.Node_c
public java.lang.String toString()
toString
in class polyglot.ast.Node_c
public void prettyPrint(polyglot.util.CodeWriter w, polyglot.visit.PrettyPrinter tr)
prettyPrint
in interface polyglot.ast.NodeOps
prettyPrint
in class polyglot.ast.Node_c
public void translate(polyglot.util.CodeWriter w, polyglot.visit.Translator tr)
translate
in interface polyglot.ast.NodeOps
translate
in class polyglot.ast.Node_c