|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.refactor.source.Processor
public class Processor
This is a "pseudo processor", inspired by the C refactoring work done by Ralph Johnson and Alejandra Garrido.
It generates a complex tree of tokens, complete with all possible branches and expansions for all possible compile-time configurations.
We call our tree a Token Expansion Tree (TET). The model for the tree is made up of Token objects and Expansion objects.
| Constructor Summary | |
|---|---|
Processor(java.io.File file,
SourceFilePool sourceFilePool)
|
|
| Method Summary | |
|---|---|
java.util.List |
calculateTokenContents(Token token)
For a Token, return a list of TokenContent objects. |
IncludeExpansion |
generateTree(CompileUnit compileUnit)
Generate the Token Expansion Tree, returns the top node, which is an IncludeExpansion object. |
static java.lang.String |
stripComments(java.lang.String orig)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Processor(java.io.File file,
SourceFilePool sourceFilePool)
| Method Detail |
|---|
public java.util.List calculateTokenContents(Token token)
public IncludeExpansion generateTree(CompileUnit compileUnit)
throws java.io.IOException,
RefactorException
java.io.IOException
RefactorExceptionpublic static java.lang.String stripComments(java.lang.String orig)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||