Class GtkParser
- java.lang.Object
-
- com.l2fprod.gui.plaf.skin.impl.gtk.parser.GtkParser
-
- All Implemented Interfaces:
GtkParserConstants
public class GtkParser extends java.lang.Object implements GtkParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntTokentokenGtkParserTokenManagertoken_source-
Fields inherited from interface com.l2fprod.gui.plaf.skin.impl.gtk.parser.GtkParserConstants
ARROW_DIRECTION, ASSIGN, BOOLEAN, BORDER, CLASS, COMMA, DECIMAL_LITERAL, DEFAULT, DETAIL, DIRECTION, ENGINE, EOF, EXTRA, FILE, FONT, FORMAL_COMMENT, FUNCTION, FUNCTION_TYPE, GAP_BORDER, GAP_END_BORDER, GAP_END_FILE, GAP_FILE, GAP_SIDE, GAP_START_BORDER, GAP_START_FILE, IMAGE, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, LBRACK, LCROC, MULTI_LINE_COMMENT, ORIENTATION, ORIENTATION_TYPE, OTHER_TOKEN, OVERLAY_BORDER, OVERLAY_FILE, OVERLAY_STRETCH, PROPERTY_KEY, RBRACK, RCROC, RECOLORABLE, SHADOW, SHADOW_TYPE, SINGLE_LINE_COMMENT, STATE, STATE_TYPE, STRETCH, STRING_LITERAL, STYLE, tokenImage, WIDGET, WIDGET_CLASS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GtkBorderborderDefinition()voidbuildStructure()voidclassDefinition()voiddisable_tracing()voidenable_tracing()ParseExceptiongenerateParseException()GtkClassgetClass(java.lang.String name)java.util.HashtablegetClasses()java.net.URLgetDirectory()TokengetNextToken()GtkStylegetStyle(java.lang.String name)java.util.HashtablegetStyles()TokengetToken(int index)voidimageDefinition(GtkEngine engine)static voidmain(java.lang.String[] args)floatreadFloat()java.lang.StringreadString()voidReInit(GtkParserTokenManager tm)voidReInit(java.io.InputStream stream)voidReInit(java.io.Reader stream)voidsetDirectory(java.net.URL dir)Sets the Directory attribute of the GtkParser objectvoidstyleDefinition()voidwhatever()voidwidgetClassDefinition()voidwidgetDefinition()
-
-
-
Field Detail
-
token_source
public GtkParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
-
Constructor Detail
-
GtkParser
public GtkParser(java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
GtkParser
public GtkParser(java.io.File file) throws java.lang.Exception- Throws:
java.lang.Exception
-
GtkParser
public GtkParser(java.net.URL url) throws java.lang.Exception- Throws:
java.lang.Exception
-
GtkParser
public GtkParser(java.io.InputStream stream)
-
GtkParser
public GtkParser(java.io.Reader stream)
-
GtkParser
public GtkParser(GtkParserTokenManager tm)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
getDirectory
public java.net.URL getDirectory()
-
setDirectory
public void setDirectory(java.net.URL dir)
Sets the Directory attribute of the GtkParser object- Parameters:
dir- The new Directory value
-
getStyles
public java.util.Hashtable getStyles()
-
getClasses
public java.util.Hashtable getClasses()
-
getStyle
public GtkStyle getStyle(java.lang.String name)
-
getClass
public GtkClass getClass(java.lang.String name)
-
buildStructure
public final void buildStructure() throws ParseException- Throws:
ParseException
-
whatever
public final void whatever() throws ParseException- Throws:
ParseException
-
widgetClassDefinition
public final void widgetClassDefinition() throws ParseException- Throws:
ParseException
-
widgetDefinition
public final void widgetDefinition() throws ParseException- Throws:
ParseException
-
styleDefinition
public final void styleDefinition() throws ParseException- Throws:
ParseException
-
imageDefinition
public final void imageDefinition(GtkEngine engine) throws ParseException
- Throws:
ParseException
-
borderDefinition
public final GtkBorder borderDefinition() throws ParseException
- Throws:
ParseException
-
classDefinition
public final void classDefinition() throws ParseException- Throws:
ParseException
-
readString
public final java.lang.String readString() throws ParseException- Throws:
ParseException
-
readFloat
public final float readFloat() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
-
ReInit
public void ReInit(java.io.Reader stream)
-
ReInit
public void ReInit(GtkParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public final ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-