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.


Method Summary
 polyglot.ast.Expr toExpr()
           
 polyglot.ast.Expr toNewArray(polyglot.util.Position p)
           
 polyglot.ast.Expr toNewArrayPrefix(polyglot.util.Position p)
           
 polyglot.ast.Prefix toPrefix()
           
 polyglot.ast.Receiver toReceiver()
           
 
Methods inherited from class jif.parse.Amb
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
 

Method Detail

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)
                                   throws java.lang.Exception
Overrides:
toNewArrayPrefix in class Amb
Throws:
java.lang.Exception

toNewArray

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