|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sc3d.apt.sss.v3.Match
public class Match
Represents a bracket matching analysis of a Sentence.
Field Summary | |
---|---|
int |
numTokens
The number of Tokens in 'sentence', after all Tokens inside brackets have been grouped into instances of Bracket. |
Sentence |
sentence
The sentence of which this is a bracket matching analysis. |
Method Summary | |
---|---|
Token |
getToken(int index)
Returns the Token with index 'index'. |
static void |
main(java.lang.String[] args)
Takes one argument: a filename. |
static Match |
make(Lex lex)
Tries to construct and return a Match for 'lex.sentence'. |
Token[] |
toArray()
Returns all the Tokens in a fresh array of length 'numTokens'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Sentence sentence
public final int numTokens
Method Detail |
---|
public static Match make(Lex lex)
public Token getToken(int index)
index
- a number from '0' to 'numTokens-1'.public Token[] toArray()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |