|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwiebert.abl4j.data.NonTerminal
public class NonTerminal
This class is used to store a nonterminal. Creating a nonterminal actually gives an unused nonterminal ''constant''. Creating a nonterminals always returns a new, unique one. They are printed as integers. It is also possible to create a nonterminal by initialising it with an integer. However, it may be the case that when initialising the nonterminal with an integer, it is has the same value as an already existing one.
| Nested Class Summary | |
|---|---|
private static class |
NonTerminal.UpperNTBuffer
|
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
private static InheritableThreadLocal<NonTerminal.UpperNTBuffer> |
upperNt
|
long |
value
the value of the nonterminal |
static NonTerminal |
ZERO_NON_TERMINAL
|
| Constructor Summary | |
|---|---|
NonTerminal()
Creates a new Nonterminal whose value will be the currently largest value. |
|
NonTerminal(long n)
Creates a new Nonterminal with value n. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true, if obj is an instanceof Nonterminal and the value of both objects is identical. |
int |
hashCode()
Returns the hashcode of field value, calculated as in Long.hashCode() |
static void |
resetUpperNt()
Only required for testing purposes. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public final long value
private static InheritableThreadLocal<NonTerminal.UpperNTBuffer> upperNt
public static NonTerminal ZERO_NON_TERMINAL
| Constructor Detail |
|---|
public NonTerminal(long n)
n - public NonTerminal()
| Method Detail |
|---|
public static void resetUpperNt()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
Long.hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||