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

com.dragome.compiler.ast.PrimitiveCast Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
package com.dragome.compiler.ast;

import org.apache.bcel.generic.Type;

import com.dragome.compiler.generators.AbstractVisitor;

public class PrimitiveCast extends Expression
{
	public int castType= 0;

	public Expression expression;

	public PrimitiveCast(int theCastType, Expression expr, Type typeBinding)
	{
		super();
		type= typeBinding;
		castType= theCastType;
		expression= expr;
	}

	public void visit(AbstractVisitor visitor)
	{
		visitor.visit(this);
	}

	public Expression getExpression()
	{
		return expression;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy