public class Access extends Amb
Access represents a Amb of the form "P[e]"
where e must be an expression. This must be an array access, although the
array itself is still ambiguous.| Constructor and Description |
|---|
Access(Grm parser,
polyglot.util.Position pos,
Amb prefix,
polyglot.ast.Expr index) |
| Modifier and Type | Method and Description |
|---|---|
polyglot.ast.Expr |
index() |
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() |
parser, position, toClassType, toIdentifier, toName, toPackage, toQualifier, toType, toUnlabeledType, wrappublic Amb prefix()
public polyglot.ast.Expr index()
public polyglot.ast.Prefix toPrefix()
throws java.lang.Exception
public polyglot.ast.Receiver toReceiver()
throws java.lang.Exception
toReceiver in class Ambjava.lang.Exceptionpublic polyglot.ast.Expr toExpr()
throws java.lang.Exception
public polyglot.ast.Expr toNewArrayPrefix(polyglot.util.Position p,
java.lang.Integer extraDims)
throws java.lang.Exception
toNewArrayPrefix in class Ambjava.lang.Exceptionpublic polyglot.ast.Expr toNewArray(polyglot.util.Position p,
java.lang.Integer extraDims)
throws java.lang.Exception
toNewArray in class Ambjava.lang.Exception