public class Array extends Amb
Array
represents a Amb
of the form "P[]".
This must be an array type, although the base of that type is still ambiguous.Modifier and Type | Field and Description |
---|---|
protected boolean |
isConst |
protected polyglot.ast.TypeNode |
prefix |
Constructor and Description |
---|
Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix) |
Array(Grm parser,
polyglot.util.Position pos,
polyglot.ast.TypeNode prefix,
boolean isConst) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConst() |
polyglot.ast.TypeNode |
prefix() |
polyglot.ast.Receiver |
toReceiver() |
polyglot.ast.TypeNode |
toType() |
polyglot.ast.TypeNode |
toUnlabeledType() |
parser, position, toClassType, toExpr, toIdentifier, toName, toNewArray, toNewArrayPrefix, toPackage, toPrefix, toQualifier, wrap
protected final polyglot.ast.TypeNode prefix
protected final boolean isConst
public Array(Grm parser, polyglot.util.Position pos, polyglot.ast.TypeNode prefix)
public Array(Grm parser, polyglot.util.Position pos, polyglot.ast.TypeNode prefix, boolean isConst)
public polyglot.ast.TypeNode prefix()
public boolean isConst()
public polyglot.ast.TypeNode toUnlabeledType()
toUnlabeledType
in class Amb
public polyglot.ast.Receiver toReceiver()
toReceiver
in class Amb