|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ast.Node_c jif.ast.ParamDecl_c
public class ParamDecl_c
An implementation of the ParamDecl
interface.
Field Summary |
---|
Fields inherited from class polyglot.ast.Node_c |
---|
del, error, ext, position |
Constructor Summary | |
---|---|
ParamDecl_c(polyglot.util.Position pos,
ParamInstance.Kind kind,
polyglot.ast.Id name)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class polyglot.ast.Node_c |
---|
addDecls, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, enterChildScope, enterScope, error, error, exceptionCheck, exceptionCheckEnter, ext, ext, ext, ext, init, isTypeChecked, node, position, position, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, 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 polyglot.ast.Node |
---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
Methods inherited from interface polyglot.util.Copy |
---|
copy |
Constructor Detail |
---|
public ParamDecl_c(polyglot.util.Position pos, ParamInstance.Kind kind, polyglot.ast.Id name)
Method Detail |
---|
public boolean isDisambiguated()
isDisambiguated
in interface polyglot.ast.Node
isDisambiguated
in class polyglot.ast.Node_c
public ParamInstance.Kind kind()
kind
in interface ParamDecl
public ParamDecl kind(ParamInstance.Kind kind)
kind
in interface ParamDecl
public java.lang.String name()
name
in interface ParamDecl
public ParamDecl name(java.lang.String name)
name
in interface ParamDecl
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 isLabel()
isLabel
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) throws polyglot.types.SemanticException
buildTypes
in interface polyglot.ast.NodeOps
buildTypes
in class polyglot.ast.Node_c
polyglot.types.SemanticException
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |