public static final class Production.Actual extends Production.Item
item
.
The production item can optionally be bound to some Java identifier, in which case the associated value is made available in the enclosing production's semantic action.
isTerminal()
,
isBound()
Modifier and Type | Field and Description |
---|---|
@Nullable CExtent |
args
The Java arguments to the production item, if any.
|
@Nullable Located<String> |
binding
The name to which this item is bound in
the associated semantic action, if non-
null |
Located<String> |
item
The name of the production item, i.e. either
the name of a non-terminal or a terminal of the
grammar, depending on whether the identifier starts
with a lowercase or uppercase character.
|
Constructor and Description |
---|
Actual(@Nullable Located<String> binding,
Located<String> item,
@Nullable CExtent args)
Builds a production item based on the given parameters
|
Modifier and Type | Method and Description |
---|---|
Production.ItemKind |
getKind()
Describes the kind of item
this is |
boolean |
isBound() |
boolean |
isTerminal() |
String |
toString() |
public final @Nullable Located<String> binding
null
public final Located<String> item
public final Production.ItemKind getKind()
Production.Item
this
isgetKind
in class Production.Item
public boolean isBound()
true
is this item is bound to some identifierpublic boolean isTerminal()
true
is this item is a terminal