Gets the attribute as array.

@param attribute the attribute
@return the attribute as array
330680
public List<String> getAttributeAsArray(AnnotationAttributeType attribute) {
		String temp = attributes.get(attribute.getValue());

		return AnnotationUtility.extractAsArrayOfString(temp);
	}
791823
protected function getAttributeType($attribute)
    {
        $value = $this->data[$attribute];
        if (is_numeric($value)) {
            return 'numeric';
        } elseif (is_array($value)) {
            return 'array';
        } elseif ($value instanceof \SplFileObject) {
            return 'file';
        }

        return 'string';
    }
740867
public String [] getAttributes() {
		if(attributes == null || attributes.length != 1 || !attributes[0].equals(ALL_ATTRIBUTES)) {
			boolean found = false;
			if(attributes != null) {
				for(String attribute : attributes) {
					if(attribute.equals("distinguishedName")) {
						found = true;
						break;
					}
				}
			}
			if(!found) {
				String [] attributesx = new String[attributes != null ? (attributes.length + 1) : 1];
				if(attributes != null) {
					attributesx[0] = "distinguishedName";
					for(int i = 0; i < attributes.length; ++i) {
						attributesx[i+1] = attributes[i];
					}
				}
				attributes = attributesx;
			}
		}
		return attributes;
	}
183794
public static function allAttributesFrom(string $attribute) {
		$modules = self::all();
		$result = [];
		foreach ($modules as $module) {
			if ($module->$attribute) {
				$attr = $module->$attribute;
				
				if (is_array($attr)) {
					foreach ($attr as $item) {
						$result[] = $item;
					}
				}
				else {
					$result[] = $attr;
				}
			}
		}
		
		return empty($result) ? null : $result;
	}
890076
public Attribute getAttribute(String name)
  {
    for (int i = _attributes.size() - 1; i >= 0; i--) {
      Attribute attr = _attributes.get(i);

      if (attr.getName().equals(name))
        return attr;
    }

    return null;
  }
878283
function getAttributes(attributes) {
		var t = typeof attributes;
		if (t === 'string') {
			return attributes;
		}
		if (t === 'object') {
			return Object.keys(attributes).reduce(function (memo, key) {
				memo.push(key + '="' + attributes[key] + '"');
				return memo;
			}, []).join(' ');
		}
		return '';
	}
821312
function getAttributeSet (attributes) {
  let attrs = {}
  Array.prototype.slice.apply(attributes).forEach(function (attr) {
    attrs[attr.name] = attr.value
  })
  return attrs
}
1154428
public String[] getAttributes(String key) {
        if (token != null)
            return token.getAttributes(key);
        else
            return null;
    }
270201
protected final String[] getAttributes(String key) {
        ArrayList<String> array = this._attributes.get(key);
        if (array != null && array.size() > 0) {
            String[] type = new String[array.size()];
            return array.toArray(type);
        }
        return null;
    }
450478
public Attribute getAttributeByName(String name) {
		for (Attribute a : attributes)
			if (name.equals(a.getName()))
				return a;
		return null;
	}
178291
function getAttrs(element) {
  return Array.from(element.attributes).reduce((attrs, attr) => {
    attrs[attr.name] = attr.value;
    return attrs;
  }, {});
}
120317
public String getAttribute(String attributeName) {
		if (attributeName != null){
			return this.attributes.get(attributeName);
		}
		
		return null;
	}
1062053
public function toArray()
    {
        $args = func_get_args();
        if ($args) {
            $attributes = [];
            foreach ($args as $key) {
                if ($this->hasAttribute($key)) {
                    $attributes[$key] = $this->get($key);
                }
            }
            return $attributes;
        } else {
            return $this->attributes;
        }
    }
764242
public String[] getAttributeNames()
    {
        Set      keys   = (attributeMap == null ? new HashSet() : attributeMap.keySet());
        String[] result = new String[keys.size()];

        keys.toArray(result);
        return result;
    }
356228
public function getAttribute(string $attribute): array
    {
        // Determine if the attribute is present
        if (! array_key_exists($attribute, $this->attributes)) {
            return [];
        }

        // Return the value of the attribute
        return $this->attributes[$attribute];
    }
238686
public Attribute<?> getAttribute(String attributeName) {
    for (Attribute<?> attribute : getAllAttributes()) {
      if (attribute.getAttributeName().equals(attributeName)) {
        return attribute;
      }
    }
    return null;
  }
984202
public static Array array(Object array) {
        if (array instanceof Object[]) {
            return array((Object[]) array);
        }
        switch (tId(array.getClass())) {
            case I_BOOLEAN:     return array((boolean[]) array);
            case I_BYTE:        return array((byte[]) array);
            case I_CHARACTER:   return array((char[]) array);
            case I_DOUBLE:      return array((double[]) array);
            case I_FLOAT:       return array((float[]) array);
            case I_INTEGER:     return array((int[]) array);
            case I_LONG:        return array((long[]) array);
            case I_SHORT:       return array((short[]) array);
        }
        throw new IllegalArgumentException("No array: " + array);
    }