jif.parse
Class Access

java.lang.Object
  extended by jif.parse.Amb
      extended by jif.parse.Access

public class Access
extends Amb

An 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 Summary
Access(Grm parser, polyglot.util.Position pos, Amb prefix, polyglot.ast.Expr index)
           
 
Method Summary
 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()
           
 
Methods inherited from class jif.parse.Amb
parser, position, toClassType, toIdentifier, toName, toPackage, toType, toUnlabeledType, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Access

public Access(Grm parser,
              polyglot.util.Position pos,
              Amb prefix,
              polyglot.ast.Expr index)
       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

prefix

public Amb prefix()

index

public polyglot.ast.Expr index()

toPrefix

public polyglot.ast.Prefix toPrefix()
                             throws java.lang.Exception
Overrides:
toPrefix in class Amb
Throws:
java.lang.Exception

toReceiver

public polyglot.ast.Receiver toReceiver()
                                 throws java.lang.Exception
Overrides:
toReceiver in class Amb
Throws:
java.lang.Exception

toExpr

public polyglot.ast.Expr toExpr()
                         throws java.lang.Exception
Overrides:
toExpr in class Amb
Throws:
java.lang.Exception

toNewArrayPrefix

public polyglot.ast.Expr toNewArrayPrefix(polyglot.util.Position p,
                                          java.lang.Integer extraDims)
                                   throws java.lang.Exception
Overrides:
toNewArrayPrefix in class Amb
Throws:
java.lang.Exception

toNewArray

public polyglot.ast.Expr toNewArray(polyglot.util.Position p,
                                    java.lang.Integer extraDims)
                             throws java.lang.Exception
Overrides:
toNewArray in class Amb
Throws:
java.lang.Exception