Search in sources :

Example 6 with AbstractMethodMapping

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

the class ClassMapping method extensionMethodMappingAt_ifAbsent_.

public AbstractMethodMapping extensionMethodMappingAt_ifAbsent_(final st.gravel.core.Symbol _aSymbol, final st.gravel.support.jvm.Block0<AbstractMethodMapping> _aBlock) {
    for (final ExtensionClassPartMapping _ex : _extensions) {
        final AbstractMethodMapping _m;
        _m = _ex.methodMappingAt_ifAbsent_(_aSymbol, ((st.gravel.support.jvm.Block0<AbstractMethodMapping>) (new st.gravel.support.jvm.Block0<AbstractMethodMapping>() {

            @Override
            public AbstractMethodMapping value() {
                return (AbstractMethodMapping) null;
            }
        })));
        if (_m != null) {
            return _m;
        }
    }
    return _aBlock.value();
}
Also used : AbstractMethodMapping(st.gravel.support.compiler.ast.AbstractMethodMapping) ExtensionClassPartMapping(st.gravel.support.compiler.ast.ExtensionClassPartMapping)

Aggregations

AbstractMethodMapping (st.gravel.support.compiler.ast.AbstractMethodMapping)6 BigInteger (java.math.BigInteger)2 HashSet (java.util.HashSet)2 Set (java.util.Set)2 AbstractClassMapping (st.gravel.support.compiler.ast.AbstractClassMapping)2 ClassMapping (st.gravel.support.compiler.ast.ClassMapping)2 Reference (st.gravel.support.compiler.ast.Reference)2 MethodHandle (java.lang.invoke.MethodHandle)1 Method (java.lang.reflect.Method)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Map (java.util.Map)1 AbsoluteReference (st.gravel.support.compiler.ast.AbsoluteReference)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 MethodNode (st.gravel.support.compiler.ast.MethodNode)1 SharedDeclarationNode (st.gravel.support.compiler.ast.SharedDeclarationNode)1 VariableDeclarationNode (st.gravel.support.compiler.ast.VariableDeclarationNode)1