<s>[INST] generates a field selection based on a list of fields . assumes that a partial path a.b is equivalent to a.b. concode_field_sep FieldSelection INVALID_NODE concode_elem_sep ValidityMode mode concode_elem_sep Map<String,FieldSelection> childrenInsensitive concode_elem_sep Map<String,FieldSelection> children concode_elem_sep FieldSelection ALL_VALID concode_field_sep void add concode_elem_sep boolean isNeverValid concode_elem_sep boolean isAlwaysValid concode_elem_sep void setAlwaysValid concode_elem_sep FieldSelection fixNodes concode_elem_sep FieldSelection getChild concode_elem_sep String toString concode_elem_sep FieldSelection addChild concode_elem_sep boolean containsStar [/INST] FieldSelection function ( List < SchemaPath > arg0 ) { if ( containsStar ( arg0 ) ) { return ALL_VALID ; } else { FieldSelection loc0 = new FieldSelection ( ) ; for ( SchemaPath loc1 : arg0 ) { loc0 . add ( loc1 . getRootSegment ( ) ) ; } return loc0 . fixNodes ( ) ; } </s>