org.vishia.java2C
Class ReadStructure.Zbnf_Field

java.lang.Object
  extended by org.vishia.java2C.ReadStructure.Zbnf_Field
Enclosing class:
ReadStructure

public static class ReadStructure.Zbnf_Field
extends java.lang.Object

Subclass to pour in the result of the field::=... subsyntax. Only some singleton instances are created:

They are reused, calling init() before, if are called because any <field?...> were parsed with syntax
 field::= <1*?modeAccess><1*?modeArrayElement><1*?modeStatic>;
          [{\[ [\?\?|<*\]?fixArraySizes>]\]}] ;
          <*; ?typeJava> ; <$?typeC> ; <$?name> ; 
 
. If the appropriate methods are called, the content of the singleton is read out and stored in the appropriate destination data structure, that is FieldData. This temporary instance is used straighten out, because the structure of syntax is not so opportune for storing in FieldData directly.


Field Summary
private  int dimensionArrayOrFixSize
           
private  ReadStructure.Zbnf_EnvIdent envStore
           
 java.lang.String instanceType
          Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report).
private  java.util.List<java.lang.String> listFixArraySizes
          If <*\]?
private  char modeAccess
           
private  char modeArrayElement
           
private  char modeStatic
           
 java.lang.String name
          Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report).
private  java.lang.String[] outerClassData
           
private  java.lang.String[] pkgType
           
 java.lang.String typeJava
          Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report).
 
Constructor Summary
private ReadStructure.Zbnf_Field()
           
 
Method Summary
 void add_fixArraySizes(java.lang.String value)
          FromZBNF: field::= ~~~ <*\] ?
 void add_outerJava(ReadStructure.Zbnf_EnvIdent value)
           
 void add_packageType(ReadStructure.Zbnf_EnvIdent value)
           
(package private)  void init()
          Initializes the instance to use.
 ReadStructure.Zbnf_EnvIdent new_outerJava()
           
 ReadStructure.Zbnf_EnvIdent new_packageType()
           
 void set_arrayDimension()
          FromZBNF: field::= ~~~[??
 void set_fixSize(int value)
          FromZBNF: field::= ~~~ fixSize \[ <#?
 void set_modeAccess(java.lang.String value)
          Sets the parsed modeAccess.
 void set_modeArrayElement(java.lang.String value)
          Sets the parsed modeArrayElement.
 void set_modeStatic(java.lang.String value)
          Sets the parsed modeStatic.
 void set_vaarg()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modeAccess

private char modeAccess

modeStatic

private char modeStatic

modeArrayElement

private char modeArrayElement

name

public java.lang.String name
Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report). To access the field from there via reflection, it should be public.


typeJava

public java.lang.String typeJava
Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report). To access the field from there via reflection, it should be public.


instanceType

public java.lang.String instanceType
Stores the parsed result inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report). To access the field from there via reflection, it should be public.


outerClassData

private java.lang.String[] outerClassData

pkgType

private java.lang.String[] pkgType

envStore

private final ReadStructure.Zbnf_EnvIdent envStore

listFixArraySizes

private java.util.List<java.lang.String> listFixArraySizes
If <*\]?fixArraySizes> is parsed, the String result is added to this list inside ZbnfJavaOutput.setOutputStrict(Object result, ZbnfParseResultItem, Report). To access the field from there via reflection, it should be public.


dimensionArrayOrFixSize

private int dimensionArrayOrFixSize
Constructor Detail

ReadStructure.Zbnf_Field

private ReadStructure.Zbnf_Field()
Method Detail

init

void init()
Initializes the instance to use.


new_outerJava

public ReadStructure.Zbnf_EnvIdent new_outerJava()

add_outerJava

public void add_outerJava(ReadStructure.Zbnf_EnvIdent value)

new_packageType

public ReadStructure.Zbnf_EnvIdent new_packageType()

add_packageType

public void add_packageType(ReadStructure.Zbnf_EnvIdent value)

set_vaarg

public void set_vaarg()

set_modeAccess

public void set_modeAccess(java.lang.String value)
Sets the parsed modeAccess. Only the first character is used and valid.


set_modeArrayElement

public void set_modeArrayElement(java.lang.String value)
Sets the parsed modeArrayElement. Only the first character is used and valid.


set_modeStatic

public void set_modeStatic(java.lang.String value)
Sets the parsed modeStatic. Only the first character is used and valid.


set_arrayDimension

public void set_arrayDimension()
FromZBNF: field::= ~~~[??<?arrayDimension>]~~~ : counts the dimensionArrayOrFixSize.


add_fixArraySizes

public void add_fixArraySizes(java.lang.String value)
FromZBNF: field::= ~~~ <*\] ?fixArraySizes> ~~~


set_fixSize

public void set_fixSize(int value)
FromZBNF: field::= ~~~ fixSize \[ <#?fixSize> \] ~~~


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object