99 lines
2.4 KiB
Java
Executable File
99 lines
2.4 KiB
Java
Executable File
// ino.module.InterfaceAndParameter.8614.package
|
|
package de.dhbwstuttgart.parser;
|
|
// ino.end
|
|
|
|
// ino.module.InterfaceAndParameter.8614.import
|
|
import de.dhbwstuttgart.typeinference.Menge;
|
|
|
|
import de.dhbwstuttgart.syntaxtree.type.ParaList;
|
|
import de.dhbwstuttgart.syntaxtree.type.Type;
|
|
|
|
// ino.class.InterfaceAndParameter.24353.description type=javadoc
|
|
/**
|
|
* Hilfskonstrukt, um die Grammatik fuer einen Interfaceheader
|
|
* ueberschaubar zu halten. Interface und optionale Generics
|
|
* werden hiermit kombiniert und sofort nach dem Parsen in der
|
|
* Klasse Interface zueruck aufgeloest.
|
|
* @author HOTI
|
|
*
|
|
*/
|
|
// ino.end
|
|
// ino.class.InterfaceAndParameter.24353.declaration
|
|
public class InterfaceAndParameter
|
|
// ino.end
|
|
// ino.class.InterfaceAndParameter.24353.body
|
|
{
|
|
// ino.attribute.name.24356.declaration
|
|
private String name;
|
|
// ino.end
|
|
// ino.attribute.plist.24359.declaration
|
|
private ParaList plist=new ParaList();
|
|
// ino.end
|
|
|
|
// ino.method.InterfaceAndParameter.24362.definition
|
|
public InterfaceAndParameter(String name)
|
|
// ino.end
|
|
// ino.method.InterfaceAndParameter.24362.body
|
|
{
|
|
this.name = name;
|
|
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.InterfaceAndParameter.24365.definition
|
|
public InterfaceAndParameter(String name, ParaList plist)
|
|
// ino.end
|
|
// ino.method.InterfaceAndParameter.24365.body
|
|
{
|
|
this.name = name;
|
|
this.plist = plist;
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.getParaMenge.24368.definition
|
|
public Menge<Type> getParaMenge()
|
|
// ino.end
|
|
// ino.method.getParaMenge.24368.body
|
|
{
|
|
if (plist == null) return null;
|
|
|
|
return plist.get_ParaList();
|
|
}
|
|
// ino.end
|
|
|
|
// ino.method.getName.24371.definition
|
|
public String getName()
|
|
// ino.end
|
|
// ino.method.getName.24371.body
|
|
{
|
|
return name;
|
|
}
|
|
// ino.end
|
|
// ino.method.setName.24374.definition
|
|
public void setName(String name)
|
|
// ino.end
|
|
// ino.method.setName.24374.body
|
|
{
|
|
this.name = name;
|
|
}
|
|
// ino.end
|
|
// ino.method.getParalist.24377.definition
|
|
public ParaList getParalist()
|
|
// ino.end
|
|
// ino.method.getParalist.24377.body
|
|
{
|
|
return plist;
|
|
}
|
|
// ino.end
|
|
// ino.method.setParalist.24380.definition
|
|
public void setParalist(ParaList plist)
|
|
// ino.end
|
|
// ino.method.setParalist.24380.body
|
|
{
|
|
this.plist = plist;
|
|
}
|
|
// ino.end
|
|
|
|
}
|
|
// ino.end
|