|
BioLegato 0.7.3 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.core.pcdmenu.parser.PCDFile
public class PCDFile
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
PCDFileTokenManager |
token_source
Generated Token Manager. |
| Fields inherited from interface org.biolegato.core.pcdmenu.parser.PCDFileConstants |
|---|
COMMA, COMMENT, DATA, DECIMAL, DEFAULT, DIGITS, DOUBLEQ, EOF, EOL, ID, IND, NL, NUMBER, SP, T_ALL, T_AMD64, T_AND, T_BUTTON, T_CANVAS, T_CHECK, T_CHOICES, T_CHOOSER, T_CLOSE, T_CMDNAME, T_COMBOBOX, T_CONTENT, T_DECIMAL, T_DEFAULT, T_FALSE, T_FASTA, T_FILE, T_FLAT, T_FORMAT, T_GDE, T_GENBANK, T_ICON, T_IF, T_IN, T_LABEL, T_LINUX, T_LIST, T_MAX, T_MIN, T_NUMBER, T_OR, T_OSX, T_OUT, T_OVERWRITE, T_PARAM, T_RAW, T_SAVE, T_SELECTION, T_SHELL, T_SOLARIS, T_SPARC, T_SYSTEM, T_TAB, T_TEMPFILE, T_TEXT, T_THEN, T_TIP, T_TRUE, T_TYPE, T_UNIX, T_WINDOWS, T_X86, T_XOR, TAB, TEXT, tokenImage |
| Constructor Summary | |
|---|---|
PCDFile(java.io.InputStream stream)
Constructor with InputStream. |
|
PCDFile(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
PCDFile(PCDFileTokenManager tm)
Constructor with generated Token Manager. |
|
PCDFile(java.io.Reader stream)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
ArchList()
Parses a list of supported system architectures in a PCD file The list is then compared with the current system architecture to see if it is supported by the PCD command. |
boolean |
ArchName()
Matches an architecture name and returns whether it is supported by the current architecture. |
void |
assertIndent(int scope)
Asserts indentation level (calls token_source.testIndent) |
boolean |
Bool()
Parses a boolean token into a java boolean |
Widget |
buttonFields(int scope)
Parses all of the fields that should be part of any button field |
Widget |
chooserFields(int scope)
Parses all of the fields that should be part of any chooser object |
Widget |
comboFields(int scope)
Parses all of the fields that should be part of any combobox object |
void |
ContentValue()
|
double |
Decimal()
Parses a decimal number from a PCD file into a Java double |
Widget |
decimalFields(int scope)
Parses all of the fields that should be part of any decimal field |
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
java.lang.String |
Ident()
Parses an identifier token from a PCD file into a Java String |
void |
inorsp(int scope)
Parses an optional indent (this is useful for values that can be spaced or indented onto a new line (e.g. |
Widget |
listFields(int scope)
Parses all of the fields that should be part of any list object |
int |
Number()
Parses a non-decimal number from a PCD file into a Java integer |
Widget |
numberFields(int scope)
Parses all of the fields that should be part of any number field |
void |
Param(int scope,
WidgetContainer wcontainer)
Generates a parameter component according to the PCD file's |
javax.swing.JMenuItem |
Parse()
Parses PCD files The format for a PCD file is: [ Optional Blank Space ] [ PCD Options ] Tabs and Parameters |
void |
PCDOption()
Parses a list of supported PCD options Currently supported options: Option name Description name the name of the PCD command tip the tool-tip text for the PCD command icon the path of the PCD command's icon file system a list of supported system configurations for the PCD command |
void |
ReInit(java.io.InputStream stream)
Reinitialise. |
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise. |
void |
ReInit(PCDFileTokenManager tm)
Reinitialise. |
void |
ReInit(java.io.Reader stream)
Reinitialise. |
void |
SystemName()
Parses a list of supported operating systems in a PCD file The list is then compared with the current operating system to see if it is supported by the PCD command. |
void |
Tab(int scope,
WidgetContainer wcontainer)
Generates a tabbed pane based on reading the tab tag from the PCD file. |
Widget |
tempfileFields(int scope)
Parses all of the fields that should be part of any temporary file field |
boolean |
testIndent(int scope)
Tests indentation (NOTE: this calls the token manager) |
java.lang.String |
Text()
Parses a text token from a PCD file into a Java String |
Widget |
textFields(int scope)
Parses all of the fields that should be part of any text field |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PCDFileTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public PCDFile(java.io.InputStream stream)
public PCDFile(java.io.InputStream stream,
java.lang.String encoding)
public PCDFile(java.io.Reader stream)
public PCDFile(PCDFileTokenManager tm)
| Method Detail |
|---|
public final javax.swing.JMenuItem Parse()
throws ParseException
ParseException
public final void PCDOption()
throws ParseException
| Option name | Description |
|---|---|
| name | the name of the PCD command |
| tip | the tool-tip text for the PCD command |
| icon | the path of the PCD command's icon file |
| system | a list of supported system configurations for the PCD command |
ParseException
public final void SystemName()
throws ParseException
ParseException
public final boolean ArchList()
throws ParseException
ParseException
public final boolean ArchName()
throws ParseException
ParseException
public final void Tab(int scope,
WidgetContainer wcontainer)
throws ParseException
ParseException
public final void Param(int scope,
WidgetContainer wcontainer)
throws ParseException
| Type field | Description |
|---|---|
| button | Buttons which can run commands or perform functions |
| list | A JList containing options |
| chooser | A radio button field |
| text | A text-field |
| number | A slider/spinner combination to set numbers |
| decimal | A decimal number widget |
| file | A file used for I/O |
scope - the scope to parse the parameter object in
ParseException
public final Widget buttonFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget chooserFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget comboFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget listFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget textFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget numberFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget decimalFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final Widget tempfileFields(int scope)
throws ParseException
scope - the scope level to read the objects at
ParseException
public final void ContentValue()
throws ParseException
ParseException
public final java.lang.String Ident()
throws ParseException
ParseException
public final java.lang.String Text()
throws ParseException
ParseException
public final double Decimal()
throws ParseException
ParseException
public final int Number()
throws ParseException
ParseException
public final boolean Bool()
throws ParseException
ParseException
public final void inorsp(int scope)
throws ParseException
scope - the number of indents to consume if we match a new line token
ParseException
public final void assertIndent(int scope)
throws ParseException
scope - the number of indents required
ParseException
public final boolean testIndent(int scope)
throws ParseException
scope - the number of indents required
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(PCDFileTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
BioLegato 0.7.3 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||