public class FortranNamelist extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
_debug
set to true to be enable verbal diarrhea with lots of debug output
|
| Constructor and Description |
|---|
FortranNamelist(String _namelist,
String _groupName,
Object _parseInto)
Define parser for group
groupName from the namelist given as text in namelist
according to the Object definition given as parseInto. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowedArrayIndex(int minIdx,
int maxIdx,
int idxToCheck,
String varname)
Check index boundaries for inserting values into array; named version.
|
Object |
getParsed()
Call the parser and return the parsed Object.
|
public boolean _debug
public FortranNamelist(String _namelist, String _groupName, Object _parseInto)
groupName from the namelist given as text in namelist
according to the Object definition given as parseInto._namelist - String containing the namelist_groupName - group name of the group to be parsed into the object parseInto_parseInto - Object definition for parsing target. Use annotation namelist_variable(name="lstell_sym")
to specify which variables to parse. name is optional (default=take variable name as identifier
in namelist) and can be used to map from Fortran names (e.g. lstell_sym) to your own defitions (e.g. stellaratorSymmetric).public Object getParsed()
parseInto with member variables filled out as stated in namelist.public static boolean allowedArrayIndex(int minIdx,
int maxIdx,
int idxToCheck,
String varname)
minIdx - minimum allowable index, i.e. 0 for int[] a = int[10];maxIdx - maximum allowable index, i.e. 9 for int[] a = int[10];idxToCheck - index to check, i.e. 5 or 11varname - name of variable to be included in error message for
debuggingCopyright © 2020. All rights reserved.