
org.fulib.scenarios.ast.decl.ExternalParameterDecl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fulibScenarios Show documentation
Show all versions of fulibScenarios Show documentation
A compiler for textual example scenarios.
The newest version!
package org.fulib.scenarios.ast.decl;
import org.fulib.scenarios.ast.type.Type;
public class ExternalParameterDecl extends ParameterDecl.Impl
{
// =============== Fields ===============
private final LazyType type = new LazyType();
// =============== Constructors ===============
public ExternalParameterDecl()
{
}
public ExternalParameterDecl(MethodDecl owner, String name, Type type)
{
// super constructor sets Impl.type field instead of calling setter.
super(owner, name, null);
this.setType(type);
}
// =============== Properties ===============
@Override
public Type getType()
{
return this.type.get(this.getOwner().getOwner().getGroup().getContext());
}
@Override
public void setType(Type type)
{
this.type.set(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy