public class Name extends Amb
Name represents a Amp of the form "n | P.n".
This could either be a field access or a type. Both could be preceded by
ambiguous qualifiers.| Constructor and Description |
|---|
Name(Grm parser,
polyglot.util.Position pos,
Amb prefix,
java.lang.String name) |
Name(Grm parser,
polyglot.util.Position pos,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
name() |
Amb |
prefix() |
polyglot.ast.TypeNode |
toClassType() |
polyglot.ast.Expr |
toExpr() |
polyglot.ast.Id |
toIdentifier() |
java.lang.String |
toName() |
polyglot.ast.PackageNode |
toPackage() |
polyglot.ast.Prefix |
toPrefix() |
polyglot.ast.QualifierNode |
toQualifier() |
polyglot.ast.Receiver |
toReceiver() |
java.lang.String |
toString() |
polyglot.ast.TypeNode |
toType() |
polyglot.ast.TypeNode |
toUnlabeledType() |
parser, position, toNewArray, toNewArrayPrefix, wrappublic java.lang.String name
public Amb prefix
public Name(Grm parser, polyglot.util.Position pos, java.lang.String name) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String name()
public Amb prefix()
public polyglot.ast.Expr toExpr()
throws java.lang.Exception
public polyglot.ast.Receiver toReceiver()
throws java.lang.Exception
toReceiver in class Ambjava.lang.Exceptionpublic polyglot.ast.Prefix toPrefix()
throws java.lang.Exception
public polyglot.ast.PackageNode toPackage()
throws java.lang.Exception
public polyglot.ast.TypeNode toType()
throws java.lang.Exception
public polyglot.ast.QualifierNode toQualifier()
throws java.lang.Exception
toQualifier in class Ambjava.lang.Exceptionpublic polyglot.ast.TypeNode toClassType()
throws java.lang.Exception
toClassType in class Ambjava.lang.Exceptionpublic polyglot.ast.TypeNode toUnlabeledType()
throws java.lang.Exception
toUnlabeledType in class Ambjava.lang.Exceptionpublic polyglot.ast.Id toIdentifier()
throws java.lang.Exception
toIdentifier in class Ambjava.lang.Exceptionpublic java.lang.String toName()
throws java.lang.Exception
public java.lang.String toString()
toString in class java.lang.Object