Search in sources :

Example 11 with ClassMapping

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

the class SystemMapping method superMethodMappingFor_methodName_.

public AbstractMethodMapping superMethodMappingFor_methodName_(final Reference _aReference, final String _methodName) {
    final st.gravel.core.Symbol _sel;
    final ClassMapping _classMapping;
    final Reference _superclassReference;
    _classMapping = ((ClassMapping) this.classMappingAtReference_(_aReference));
    _superclassReference = _classMapping.superclassReference();
    if (_superclassReference == null) {
        return null;
    }
    _sel = _selectorConverter.functionNameAsSelector_(_methodName);
    return this.methodMappingFrom_selector_(((ClassMapping) this.classMappingAtReference_(_superclassReference)), _sel);
}
Also used : ClassMapping(st.gravel.support.compiler.ast.ClassMapping) AbstractClassMapping(st.gravel.support.compiler.ast.AbstractClassMapping) Reference(st.gravel.support.compiler.ast.Reference) AbsoluteReference(st.gravel.support.compiler.ast.AbsoluteReference)

Aggregations

AbstractClassMapping (st.gravel.support.compiler.ast.AbstractClassMapping)11 ClassMapping (st.gravel.support.compiler.ast.ClassMapping)11 BigInteger (java.math.BigInteger)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Set (java.util.Set)2 AbsoluteReference (st.gravel.support.compiler.ast.AbsoluteReference)2 AbstractMethodMapping (st.gravel.support.compiler.ast.AbstractMethodMapping)2 MethodNode (st.gravel.support.compiler.ast.MethodNode)2 Reference (st.gravel.support.compiler.ast.Reference)2 SharedDeclarationNode (st.gravel.support.compiler.ast.SharedDeclarationNode)2 HashMap (java.util.HashMap)1 Map (java.util.Map)1 ClassDescriptionNode (st.gravel.support.compiler.ast.ClassDescriptionNode)1 ClassNode (st.gravel.support.compiler.ast.ClassNode)1 ExtensionClassPartMapping (st.gravel.support.compiler.ast.ExtensionClassPartMapping)1 InstVarMapping (st.gravel.support.compiler.ast.InstVarMapping)1 UnaryMethodNode (st.gravel.support.compiler.ast.UnaryMethodNode)1 VariableDeclarationNode (st.gravel.support.compiler.ast.VariableDeclarationNode)1