public class symbol_part extends production_part
production
Modifier and Type | Field and Description |
---|---|
protected symbol |
_the_symbol
The symbol that this part is made up of.
|
_label
Constructor and Description |
---|
symbol_part(symbol sym)
Constructor with no label.
|
symbol_part(symbol sym,
String lab)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Generic equality comparison.
|
boolean |
equals(symbol_part other)
Equality comparison.
|
int |
hashCode()
Produce a hash code.
|
boolean |
is_action()
Respond that we are not an action part.
|
symbol |
the_symbol()
The symbol that this part is made up of.
|
String |
toString()
Convert to a string.
|
equals, label
protected symbol _the_symbol
public symbol_part(symbol sym, String lab) throws internal_error
sym
- the symbol that this part is made up of.lab
- an optional label string for the part.internal_error
public symbol_part(symbol sym) throws internal_error
sym
- the symbol that this part is made up of.internal_error
public symbol the_symbol()
public boolean is_action()
is_action
in class production_part
public boolean equals(symbol_part other)
public boolean equals(Object other)
equals
in class production_part
public int hashCode()
hashCode
in class production_part
public String toString()
toString
in class production_part
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.