public class InstOrAccess extends Amb
InstOrAccess
represents a Amb
of the form
"P[e]" or "P[p]".Constructor and Description |
---|
InstOrAccess(Grm parser,
polyglot.util.Position pos,
Amb prefix,
java.lang.Object param) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
param() |
Amb |
prefix() |
polyglot.ast.Expr |
toExpr() |
polyglot.ast.Expr |
toNewArray(polyglot.util.Position p,
java.lang.Integer extraDims) |
polyglot.ast.Expr |
toNewArrayPrefix(polyglot.util.Position p,
java.lang.Integer extraDims) |
polyglot.ast.Prefix |
toPrefix() |
polyglot.ast.Receiver |
toReceiver() |
polyglot.ast.TypeNode |
toType() |
polyglot.ast.TypeNode |
toUnlabeledType() |
parser, position, toClassType, toIdentifier, toName, toPackage, toQualifier, wrap
public Amb prefix()
public java.lang.Object param()
public polyglot.ast.TypeNode toType() throws java.lang.Exception
public polyglot.ast.TypeNode toUnlabeledType() throws java.lang.Exception
toUnlabeledType
in class Amb
java.lang.Exception
public polyglot.ast.Prefix toPrefix() throws java.lang.Exception
public polyglot.ast.Receiver toReceiver() throws java.lang.Exception
toReceiver
in class Amb
java.lang.Exception
public polyglot.ast.Expr toExpr() throws java.lang.Exception
public polyglot.ast.Expr toNewArray(polyglot.util.Position p, java.lang.Integer extraDims) throws java.lang.Exception
toNewArray
in class Amb
java.lang.Exception
public polyglot.ast.Expr toNewArrayPrefix(polyglot.util.Position p, java.lang.Integer extraDims) throws java.lang.Exception
toNewArrayPrefix
in class Amb
java.lang.Exception