Get Collection of fields that have field specific highlight options.

@return
497647
public Collection<FieldWithHighlightParameters> getFieldsWithHighlightParameters() {

		List<FieldWithHighlightParameters> result = new ArrayList<>();
		for (Field candidate : fields) {

			if (candidate instanceof FieldWithHighlightParameters) {
				result.add((FieldWithHighlightParameters) candidate);
			}
		}

		return result;
	}
1213693
public List<I_CmsFormatterBean> getDisplayFormatters() {

        if (m_displayFormatters == null) {
            List<I_CmsFormatterBean> formatters = new ArrayList<I_CmsFormatterBean>(
                Collections2.filter(m_allFormatters, new IsDisplay()));
            if (formatters.size() > 1) {
                Collections.sort(formatters, new Comparator<I_CmsFormatterBean>() {

                    public int compare(I_CmsFormatterBean o1, I_CmsFormatterBean o2) {

                        return o1.getRank() == o2.getRank() ? 0 : (o1.getRank() < o2.getRank() ? -1 : 1);
                    }
                });
            }
            m_displayFormatters = Collections.unmodifiableList(formatters);
        }
        return m_displayFormatters;
    }
555605
public Map<String, String> getCustomFields() {
        Map<String, String> fields = new HashMap<String, String>();
        for (CustomField f : customFields) {
            fields.put(f.getName(), f.getValue());
        }
        return fields;
    }
890897
private static List<Field> findFields() {
        List<Field> result = new ArrayList<Field>();
        for (Field f : LoadStatistics.class.getFields()) {
            if (Modifier.isPublic(f.getModifiers()) && MultiStageTimeSeries.class.isAssignableFrom(f.getType())
                    && f.getAnnotation(Deprecated.class) == null) {
                result.add(f);
            }
        }
        return result;
    }
480015
public java.util.List<Field> getFields() {
        if (fields == null) {
            fields = new com.amazonaws.internal.SdkInternalList<Field>();
        }
        return fields;
    }
1167493
public List<DOField> getFields() {
	List<DOField> ret = new ArrayList<DOField>();
		DOType typ = this;
		while(typ != null) {
			ret.addAll(typ.getDeclaredFields());
			typ = typ.getSuperType();
		}
		return ret;
	}
39965
def selected_fields(self):
        
        items = self.lstFields.selectedItems()
        if items and self.mode == MULTI_MODE:
            return [item.text() for item in items]
        elif items and self.mode == SINGLE_MODE:
            return items[0].text()
        else:
            return []
431138
public function getCMSFields()
    {
        // Obtain Field Objects (from parent):
        
        $fields = parent::getCMSFields();
        
        // Define Placeholder:
        
        $placeholder = _t(__CLASS__ . '.DROPDOWNSELECT', 'Select');
        
        // Create Main Fields:
        
        $fields->addFieldsToTab(
            'Root.Main',
            [
                DropdownField::create(
                    'TagSourceID',
                    $this->fieldLabel('TagSourceID'),
                    $this->getTagSourceOptions()
                )->setEmptyString(' ')->setAttribute('data-placeholder', $placeholder)
            ]
        );
        
        // Create Style Fields:
        
        $fields->addFieldToTab(
            'Root.Style',
            FieldSection::create(
                'TagCloudStyle',
                $this->fieldLabel('TagCloudStyle'),
                [
                    ColorField::create(
                        'ColorText',
                        $this->fieldLabel('ColorText')
                    ),
                    ColorField::create(
                        'ColorOutline',
                        $this->fieldLabel('ColorOutline')
                    )
                ]
            )
        );
        
        // Create Options Fields:
        
        $fields->addFieldToTab(
            'Root.Options',
            FieldSection::create(
                'TagCloudOptions',
                $this->fieldLabel('TagCloudOptions'),
                [
                    FieldGroup::create(
                        $this->fieldLabel('Zoom'),
                        [
                            DropdownField::create(
                                'Zoom',
                                $this->fieldLabel('ZoomInitial'),
                                $this->getRangeOptions(0.5, 3, 0.1)
                            ),
                            DropdownField::create(
                                'ZoomMin',
                                $this->fieldLabel('ZoomMin'),
                                $this->getRangeOptions(0.5, 3, 0.1)
                            ),
                            DropdownField::create(
                                'ZoomMax',
                                $this->fieldLabel('ZoomMax'),
                                $this->getRangeOptions(0.5, 3, 0.1)
                            ),
                            DropdownField::create(
                                'Depth',
                                $this->fieldLabel('Depth'),
                                $this->getRangeOptions(0.1, 1, 0.1)
                            )
                        ]
                    ),
                    FieldGroup::create(
                        $this->fieldLabel('InitialRotation'),
                        [
                            DropdownField::create(
                                'InitialRotationH',
                                $this->fieldLabel('InitialRotationH'),
                                $this->getRangeOptions(-1, 1, 0.1)
                            ),
                            DropdownField::create(
                                'InitialRotationV',
                                $this->fieldLabel('InitialRotationV'),
                                $this->getRangeOptions(-1, 1, 0.1)
                            )
                        ]
                    ),
                    FieldGroup::create(
                        $this->fieldLabel('WeightSize'),
                        [
                            TextField::create(
                                'WeightSizeMin',
                                $this->fieldLabel('WeightSizeMin')
                            ),
                            TextField::create(
                                'WeightSizeMax',
                                $this->fieldLabel('WeightSizeMax')
                            )
                        ]
                    ),
                    CheckboxField::create(
                        'Weight',
                        $this->fieldLabel('Weight')
                    )
                ]
            )
        );
        
        // Answer Field Objects:
        
        return $fields;
    }
334192
public SortedSet<String> fields() {
		// Optimization: Materialize the fields set
		if (myFieldSet == null)
			myFieldSet = new TreeSet<String>(fields.keySet());
		return myFieldSet;
	}
542842
public List<CmsLuceneField> getLuceneFields() {

        List<CmsLuceneField> result = new ArrayList<CmsLuceneField>();
        for (CmsSearchField field : getFields()) {
            if (field instanceof CmsLuceneField) {
                result.add((CmsLuceneField)field);
            }
        }
        return result;
    }
1067047
def selected_fields
      return @selected_fields unless @selected_fields.nil?

      fields = [*options[:select]].map { |f| f.split(',') }.flatten
      fields.concat(required_fields) if @fasta && !fields.empty?
      @selected_fields = fields.map { |f| glob_to_regex(f) }
    end
445462
public FieldInfo[] getFields() {
        FieldInfo[] fields = new FieldInfo[mFields.size()];
        return mFields.toArray(fields);
    }
975771
public static <T> List<Field> getDeclaredFields(T type) {
        return new ArrayList<>(asList(type.getClass().getDeclaredFields()));
    }
1067842
def get_fields_with_visibility(self, visibility="edit", mode="add"):
        
        fields = self.get_sorted_fields()

        out = []

        for field in fields:
            v = field.widget.isVisible(
                self.context, mode, default='invisible', field=field)

            if self.is_field_visible(field) is False:
                v = "hidden"

            visibility_guard = True
            # visibility_guard is a widget field defined in the schema in order
            # to know the visibility of the widget when the field is related to
            # a dynamically changing content such as workflows. For instance
            # those fields related to the workflow will be displayed only if
            # the workflow is enabled, otherwise they should not be shown.
            if 'visibility_guard' in dir(field.widget):
                visibility_guard = eval(field.widget.visibility_guard)
            if v == visibility and visibility_guard:
                out.append(field)

        return out
721877
public Highlight getHighlight(Field field, Object instance) {
        if (getHighlights() == null) {
            return null;
        }
        return getHighlights().getHighlight(this, field, instance);
    }
718785
public Set<String> getReturnFields() {

        if (m_fieldAdded) {
            for (CmsSearchField field : getLuceneFields()) {
                if (field.isStored() && !LAZY_FIELDS.contains(field.getName())) {
                    m_returnFields.add(field.getName());
                }
            }
        }
        m_fieldAdded = false;
        return m_returnFields;
    }
315871
private Collection<Field> getDeclaredFields() {
      final LinkedList<Field> declaredFields = new LinkedList<>(Arrays.asList(clazz.getDeclaredFields()));
      for (Class<?> c = clazz.getSuperclass(); c != null; c = c.getSuperclass()) {
         // support fields from MappedSuperclass(es).
         // Do not support ambiguous annotation. Spec says:
         // "A mapped superclass has no separate table defined for it".
         if (c.getAnnotation(MappedSuperclass.class) != null) {
            if (c.getAnnotation(Table.class) == null) {
               declaredFields.addAll(Arrays.asList(c.getDeclaredFields()));
            }
            else {
               throw new RuntimeException("Class " + c.getName() + " annotated with @MappedSuperclass cannot also have @Table annotation");
            }
         }
      }
      return declaredFields;
   }