Copyright 2011-01-06 Werner Randelshofer

ch.randelshofer.media.binary
Class StructParser.MagicDeclaration

java.lang.Object
  extended by ch.randelshofer.media.binary.StructParser.MagicDeclaration
Enclosing class:
StructParser

protected static class StructParser.MagicDeclaration
extends java.lang.Object

MagicDeclaration expression.


 MagicDeclaration ::= "magic" identifier ("ushort" hexLiteral[".." hexLiteral] | stringLiteral) ";"
 


Field Summary
 java.lang.String identifier
           
 java.lang.String magic
          If magic is null, then ushortMagicFrom/ushortMagicTo is used.
 int ushortMagicFrom
           
 int ushortMagicTo
           
 
Constructor Summary
StructParser.MagicDeclaration(org.jhotdraw.io.StreamPosTokenizer scanner)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

public java.lang.String identifier

magic

public java.lang.String magic
If magic is null, then ushortMagicFrom/ushortMagicTo is used.


ushortMagicFrom

public int ushortMagicFrom

ushortMagicTo

public int ushortMagicTo
Constructor Detail

StructParser.MagicDeclaration

public StructParser.MagicDeclaration(org.jhotdraw.io.StreamPosTokenizer scanner)
                              throws java.io.IOException,
                                     ParseException
Throws:
java.io.IOException
ParseException

Copyright 2011-01-06 Werner Randelshofer