|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.linearize.LinearizeTree
public class LinearizeTree
Linearize an abstract syntax tree to a string representation of the tree itself.
Constructor Summary | |
---|---|
LinearizeTree()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of this linearizer. |
java.util.List<Token> |
linearize(Tree t)
Linearize the given abstract syntax tree to a GF value. |
java.util.List<Token> |
linearizeWithRanges(Tree t)
Linearize the given abstract syntax tree to a GF value, where the input ranges for each constructor are shown in the output. |
boolean |
tryThisOne()
Whether this linearizer should be used when linearizing with all available linearizers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearizeTree()
Method Detail |
---|
public java.util.List<Token> linearize(Tree t)
Linearizer
linearize
in interface Linearizer
public java.util.List<Token> linearizeWithRanges(Tree t)
Linearizer
linearizeWithRanges
in interface Linearizer
public java.lang.String getName()
Linearizer
getName
in interface Linearizer
public boolean tryThisOne()
Linearizer
tryThisOne
in interface Linearizer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |