Search in sources :

Example 16 with Reference

use of st.gravel.support.compiler.ast.Reference in project gravel by gravel-st.

the class MetaclassNode method superclassReferenceForMethodLookup.

@Override
public Reference superclassReferenceForMethodLookup() {
    final Reference _csr;
    _csr = _classNode.superclassReference();
    if (_csr == null) {
        return AbsoluteReference.factory.path_(new st.gravel.core.Symbol[] { st.gravel.core.Symbol.value("st"), st.gravel.core.Symbol.value("gravel"), st.gravel.core.Symbol.value("lang"), st.gravel.core.Symbol.value("Class") });
    }
    return ClassReference.factory.reference_(((AbsoluteReference) _csr));
}
Also used : Reference(st.gravel.support.compiler.ast.Reference) AbsoluteReference(st.gravel.support.compiler.ast.AbsoluteReference) ClassReference(st.gravel.support.compiler.ast.ClassReference) AbsoluteReference(st.gravel.support.compiler.ast.AbsoluteReference)

Example 17 with Reference

use of st.gravel.support.compiler.ast.Reference in project gravel by gravel-st.

the class AbstractClassMapping method superclassMappingIn_.

public AbstractClassMapping superclassMappingIn_(final SystemMapping _aSystemMapping) {
    final Reference _superclassReference;
    _superclassReference = this.superclassReference();
    if (_superclassReference == null) {
        return null;
    }
    return _aSystemMapping.classMappingAtReference_(_superclassReference);
}
Also used : Reference(st.gravel.support.compiler.ast.Reference)

Aggregations

Reference (st.gravel.support.compiler.ast.Reference)17 AbsoluteReference (st.gravel.support.compiler.ast.AbsoluteReference)11 AbstractClassMapping (st.gravel.support.compiler.ast.AbstractClassMapping)4 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 Map (java.util.Map)3 ClassDescriptionNode (st.gravel.support.compiler.ast.ClassDescriptionNode)3 ClassNode (st.gravel.support.compiler.ast.ClassNode)3 MethodHandle (java.lang.invoke.MethodHandle)2 Method (java.lang.reflect.Method)2 List (java.util.List)2 AbstractMethodMapping (st.gravel.support.compiler.ast.AbstractMethodMapping)2 ClassMapping (st.gravel.support.compiler.ast.ClassMapping)2 ClassReference (st.gravel.support.compiler.ast.ClassReference)2 NamespaceNode (st.gravel.support.compiler.ast.NamespaceNode)2 SharedDeclarationNode (st.gravel.support.compiler.ast.SharedDeclarationNode)2 JVMDefinedObjectType (st.gravel.support.compiler.jvm.JVMDefinedObjectType)2 ConstantCallSite (java.lang.invoke.ConstantCallSite)1 Constructor (java.lang.reflect.Constructor)1 HashSet (java.util.HashSet)1