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

com.dragome.compiler.units.MemberUnit Maven / Gradle / Ivy

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

import com.dragome.compiler.Project;
import com.dragome.compiler.type.Signature;

public abstract class MemberUnit extends Unit
{

	ClassUnit declaringClass;

	MemberUnit(Signature theSignature, ClassUnit theDeclaringClazz)
	{
		setSignature(theSignature);
		declaringClass= theDeclaringClazz;
		declaringClass.addMemberUnit(this);
	}

	public ClassUnit getDeclaringClass()
	{
		return declaringClass;
	}

	public Signature getAbsoluteSignature()
	{
		Signature s= Project.getSingleton().getSignature(declaringClass.toString(), getSignature().toString());
		return s;
	}

	public String toString()
	{
		return declaringClass.getName() + "#" + super.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy