private static void registerNamedField ( final String normalizedName , final int structureBorder , final int offset , final List < JBBPNamedFieldInfo > namedFields , final JBBPToken token ) { for ( int i = namedFields . size ( ) - 1 ; i >= structureBorder ; i -- ) { final JBBPNamedFieldInfo info = namedFields . get ( i ) ; if ( info . getFieldPath ( ) . equals ( normalizedName ) ) { throw new JBBPCompilationException ( "Duplicated named field detected [" + normalizedName + ' ' , token ) ; } } namedFields . add ( new JBBPNamedFieldInfo ( normalizedName , normalizedName , offset ) ) ; }
Register a name field info item in a named field list .