jif.ast

## Class AmbExprParam_c

- java.lang.Object
- - polyglot.ast.Node_c
  - - jif.ast.AmbExprParam_c

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, AmbExprParam, AmbParam, ParamNode, polyglot.ast.Ambiguous, polyglot.ast.Node, polyglot.ast.NodeOps, polyglot.util.Copy<polyglot.ast.Node>

      public class AmbExprParam_c
      extends polyglot.ast.Node_c
      implements AmbExprParam

  An implementation of the `AmbParam` interface.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface polyglot.util.Copy

      `polyglot.util.Copy.Util`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected ParamInstance` | `expectedPI`
    `protected polyglot.ast.Expr` | `expr`

    - ### Fields inherited from class polyglot.ast.Node_c

      `del, error, ext, position`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AmbExprParam_c(polyglot.util.Position pos, polyglot.ast.Expr expr, ParamInstance expectedPI)`
    `AmbExprParam_c(polyglot.util.Position pos, polyglot.ast.Expr expr, ParamInstance expectedPI, polyglot.ast.Ext ext)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `polyglot.ast.Node` | `disambiguate(polyglot.visit.AmbiguityRemover ar)` Always return a CanoncialLabelNode, and let the dynamic label be possibly changed to a dynamic principal later.
    `protected <N extends AmbExprParam_c> N` | `expectedPI(N n, ParamInstance expectedPI)`
    `AmbExprParam` | `expectedPI(ParamInstance expectedPI)`
    `polyglot.ast.Expr` | `expr()`
    `AmbExprParam` | `expr(polyglot.ast.Expr expr)`
    `protected <N extends AmbExprParam_c> N` | `expr(N n, polyglot.ast.Expr expr)`
    `boolean` | `isDisambiguated()`
    `Param` | `parameter()`
    `protected <N extends AmbExprParam_c> N` | `reconstruct(N n, polyglot.ast.Expr expr, ParamInstance expectedPI)`
    `java.lang.String` | `toString()`
    `polyglot.ast.Node` | `visitChildren(polyglot.visit.NodeVisitor v)`

    - ### Methods inherited from class polyglot.ast.Node_c

      `addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copy, copyIfNeeded, del, del, 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, prettyPrint, print, printBlock, printSubStmt, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, 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

      `del, del, dump, error, error, ext, ext, ext, ext, isTypeChecked, position, position, visit, visitEdge`

    - ### Methods inherited from interface polyglot.ast.NodeOps

      `addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, extRewriteOverride, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitList`

    - ### Methods inherited from interface polyglot.util.Copy

      `copy`

- - ### Field Detail

    - #### expr

          protected polyglot.ast.Expr expr

    - #### expectedPI

          protected ParamInstance expectedPI

  - ### Constructor Detail

    - #### AmbExprParam_c

          public AmbExprParam_c(polyglot.util.Position pos,
                                polyglot.ast.Expr expr,
                                ParamInstance expectedPI)

    - #### AmbExprParam_c

          public AmbExprParam_c(polyglot.util.Position pos,
                                polyglot.ast.Expr expr,
                                ParamInstance expectedPI,
                                polyglot.ast.Ext ext)

  - ### Method Detail

    - #### isDisambiguated

          public boolean isDisambiguated()

      Specified by:
        `isDisambiguated` in interface `polyglot.ast.Node`
      Overrides:
        `isDisambiguated` in class `polyglot.ast.Node_c`

    - #### expr

          public polyglot.ast.Expr expr()

    - #### expr

          public AmbExprParam expr(polyglot.ast.Expr expr)

    - #### expr

          protected <N extends AmbExprParam_c> N expr(N n,
                                                      polyglot.ast.Expr expr)

    - #### expectedPI

          public AmbExprParam expectedPI(ParamInstance expectedPI)

      Specified by:
        `expectedPI` in interface `AmbExprParam`

    - #### expectedPI

          protected <N extends AmbExprParam_c> N expectedPI(N n,
                                                            ParamInstance expectedPI)

    - #### parameter

          public Param parameter()

      Specified by:
        `parameter` in interface `ParamNode`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `polyglot.ast.Node_c`

    - #### visitChildren

          public polyglot.ast.Node visitChildren(polyglot.visit.NodeVisitor v)

      Specified by:
        `visitChildren` in interface `polyglot.ast.NodeOps`
      Overrides:
        `visitChildren` in class `polyglot.ast.Node_c`

    - #### reconstruct

          protected <N extends AmbExprParam_c> N reconstruct(N n,
                                                             polyglot.ast.Expr expr,
                                                             ParamInstance expectedPI)

    - #### disambiguate

          public polyglot.ast.Node disambiguate(polyglot.visit.AmbiguityRemover ar)
                                         throws polyglot.types.SemanticException

      Always return a CanoncialLabelNode, and let the dynamic label be possibly changed to a dynamic principal later.
      Specified by:
        `disambiguate` in interface `polyglot.ast.NodeOps`
      Overrides:
        `disambiguate` in class `polyglot.ast.Node_c`
      Throws:
        `polyglot.types.SemanticException`