jif.parse
Class Array
java.lang.Object
jif.parse.Amb
jif.parse.Array
public class Array
- extends Amb
An Array
represents a Amb
of the form "P[]".
This must be an array type, although the base of that type is still ambiguous.
Constructor Summary |
Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix)
|
Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix,
boolean isConst)
|
Methods inherited from class jif.parse.Amb |
parser, position, toClassType, toExpr, toIdentifier, toName, toNewArray, toNewArrayPrefix, toPackage, toPrefix, wrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Array
public Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix)
Array
public Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix,
boolean isConst)
prefix
public polyglot.ast.TypeNode prefix()
isConst
public boolean isConst()
toType
public polyglot.ast.TypeNode toType()
- Overrides:
toType
in class Amb
toUnlabeledType
public polyglot.ast.TypeNode toUnlabeledType()
- Overrides:
toUnlabeledType
in class Amb
toReceiver
public polyglot.ast.Receiver toReceiver()
- Overrides:
toReceiver
in class Amb