de.upb.hni.vmagic.object
Class ConstantGroup

java.lang.Object
  extended by de.upb.hni.vmagic.object.ConstantGroup
All Implemented Interfaces:
VhdlObjectGroup<Constant>, VhdlObjectProvider<Constant>

public class ConstantGroup
extends java.lang.Object
implements VhdlObjectGroup<Constant>

Group of constants.


Constructor Summary
ConstantGroup(Constant... constants)
          Creates a group of constants.
ConstantGroup(java.util.List<Constant> constants)
          Creates a group of constants.
 
Method Summary
 java.util.List<Constant> getElements()
          Returns the constants in this group.
 java.util.List<Constant> getVhdlObjects()
          Returns a list of VhdlObject that are contained in this VhdlObjectProvider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantGroup

public ConstantGroup(java.util.List<Constant> constants)
Creates a group of constants.

Parameters:
constants - a list of constants

ConstantGroup

public ConstantGroup(Constant... constants)
Creates a group of constants.

Parameters:
constants - a variable number of constants
Method Detail

getElements

public java.util.List<Constant> getElements()
Returns the constants in this group.

Specified by:
getElements in interface VhdlObjectGroup<Constant>
Returns:
a modifiable list of constants

getVhdlObjects

public java.util.List<Constant> getVhdlObjects()
Description copied from interface: VhdlObjectProvider
Returns a list of VhdlObject that are contained in this VhdlObjectProvider.

Specified by:
getVhdlObjects in interface VhdlObjectProvider<Constant>
Returns:
list of VhdlObjects