de.upb.hni.vmagic
Class Signature

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.Signature

public class Signature
extends VhdlElement

Signature.


Constructor Summary
Signature()
          Creates an empty signature.
Signature(java.util.List<SubtypeIndication> parameterTypes)
          Creates a signature with a list of parameter types.
Signature(SubtypeIndication returnType)
          Creates a signature with a return type.
Signature(SubtypeIndication returnType, java.util.List<SubtypeIndication> parameterTypes)
          Creates a signature with a return type and a list of parameter types.
Signature(SubtypeIndication returnType, SubtypeIndication... parameterTypes)
          Creates a signature with a return type and a variable number of parameter types.
 
Method Summary
 java.util.List<SubtypeIndication> getParameterTypes()
          Returns a list of parameter types.
 SubtypeIndication getReturnType()
          Returns the return type of this signature.
 void setReturnType(SubtypeIndication returnType)
          Sets the return type of this signature.
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signature

public Signature()
Creates an empty signature.


Signature

public Signature(SubtypeIndication returnType,
                 SubtypeIndication... parameterTypes)
Creates a signature with a return type and a variable number of parameter types.

Parameters:
returnType - the return type
parameterTypes - the parameter types

Signature

public Signature(SubtypeIndication returnType,
                 java.util.List<SubtypeIndication> parameterTypes)
Creates a signature with a return type and a list of parameter types.

Parameters:
returnType - the return type
parameterTypes - the list of parameter types

Signature

public Signature(SubtypeIndication returnType)
Creates a signature with a return type.

Parameters:
returnType - the return type.

Signature

public Signature(java.util.List<SubtypeIndication> parameterTypes)
Creates a signature with a list of parameter types.

Parameters:
parameterTypes - the list of parameter types
Method Detail

getReturnType

public SubtypeIndication getReturnType()
Returns the return type of this signature.

Returns:
the return type or null if no return type is set

setReturnType

public void setReturnType(SubtypeIndication returnType)
Sets the return type of this signature.

Parameters:
returnType - the return type or null to remove the return type

getParameterTypes

public java.util.List<SubtypeIndication> getParameterTypes()
Returns a list of parameter types.

Returns:
a modifiable list of parameter types