com.dragome.compiler.units.MemberUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
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();
}
}