All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.serversass.ast.Mixin Maven / Gradle / Ivy

There is a newer version: 5.0.1
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package org.serversass.ast;

import java.util.ArrayList;
import java.util.List;

/**
 * Defines a parsed mixin.
 */
public class Mixin {

    private List parameters = new ArrayList();
    private List attributes = new ArrayList();
    private List
subSections = new ArrayList
(); private String name; /** * Adds a parameter of the mixin * * @param name the name of the parameter to add (without $) */ public void addParameter(String name) { parameters.add(name); } /** * Adds an attribute * * @param attr the attribute to add */ public void addAttribute(Attribute attr) { attributes.add(attr); } /** * Sets the name of the mixin * * @param name the name of the mixin */ public void setName(String name) { this.name = name; } /** * Adds a sub section. This can be either a nested section or a media query. * * @param section the section to add */ public void addSubSection(Section section) { subSections.add(section); } /** * Returns the name of the mixin * * @return the name of the mixin */ public String getName() { return name; } /** * Returns all parameters of the mixin * * @return a list of parameter names of the mixin */ public List getParameters() { return parameters; } /** * Returns all attributes defined by the mixin * * @return a list of all defined attributes */ public List getAttributes() { return attributes; } /** * Returns a list of all sub sections. * * @return a list of all sub sections */ public List
getSubSections() { return subSections; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy