Package st.gravel.support.jvm

Examples of st.gravel.support.jvm.NonLocalReturn


        _rootStmt.allNodesDo_(new st.gravel.support.jvm.Block1<Object, Node>() {

          @Override
          public Object value_(final Node _node) {
            if (_node.isBlockNodeWithReturnStatements()) {
              throw new NonLocalReturn(true, _temp1);
            }
            return MethodNode.this;
          }
        });
      }
View Full Code Here


        }
      }, ((st.gravel.support.jvm.Block0<PragmaNode>) (new st.gravel.support.jvm.Block0<PragmaNode>() {

        @Override
        public PragmaNode value() {
          throw new NonLocalReturn(_aBlock.value(), _temp1);
        }
      }))));
      return ((LiteralNode) _pr.expression().arguments()[1]).value();
    } catch (NonLocalReturn nlr) {
      if (nlr.marker == _temp1) {
View Full Code Here

        public Object value_(final Node _each) {
          if (_each.isReturnNode()) {
            final ReturnNode _returnNode;
            _returnNode = ((ReturnNode) _each);
            if (!_returnNode.value().isSelfNode()) {
              throw new NonLocalReturn(false, _temp1);
            }
          }
          return SequenceNode.this;
        }
      });
View Full Code Here

      final String _javaClass;
      _javaClass = ((String) st.gravel.support.jvm.DictionaryExtensions.at_ifAbsent_(_properties, "javaClass", ((st.gravel.support.jvm.Block0<String>) (new st.gravel.support.jvm.Block0<String>() {

        @Override
        public String value() {
          throw new NonLocalReturn(null, _temp1);
        }
      }))));
      return ((st.gravel.core.Symbol[]) st.gravel.support.jvm.ArrayExtensions.collect_(st.gravel.support.jvm.StringExtensions.tokensBasedOn_(_javaClass, '.'), ((st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>) (new st.gravel.support.jvm.Block1<st.gravel.core.Symbol, String>() {

        @Override
View Full Code Here

            final SharedDeclarationNode _sharedVariable;
            _cm = ((AbstractClassMapping) st.gravel.support.jvm.DictionaryExtensions.at_ifAbsent_(_classMappingsByReference, _reference.namespace(), ((st.gravel.support.jvm.Block0<AbstractClassMapping>) (new st.gravel.support.jvm.Block0<AbstractClassMapping>() {

              @Override
              public AbstractClassMapping value() {
                throw new NonLocalReturn(_aBlock.value(), _temp2);
              }
            }))));
            _sharedVariable = _cm.classNode().meta().sharedVariableAt_ifAbsent_(_reference.name().asString(), new st.gravel.support.jvm.Block0<SharedDeclarationNode>() {

              @Override
              public SharedDeclarationNode value() {
                return (SharedDeclarationNode) null;
              }
            });
            if (_sharedVariable != null) {
              throw new RuntimeException("Shared not initialized: " + _reference.toString());
            }
            _superclassReference = ((AbsoluteReference) _cm.superclassReference());
            if (_superclassReference == null) {
              throw new NonLocalReturn(_aBlock.value(), _temp2);
            }
            return (st.gravel.support.jvm.runtime.AlmostFinalValue) SystemMapping.this.classSharedSingletonHolderAtReference_ifAbsent_(_superclassReference.$slash$(_reference.name()), _aBlock);
          }
        }))));
      }
View Full Code Here

      if (_reference.isMeta()) {
        return ((ClassNode) SystemMapping.this.definitionClassNodeAt_ifAbsent_(_reference.nonmeta(), ((st.gravel.support.jvm.Block0<ClassDescriptionNode>) (new st.gravel.support.jvm.Block0<ClassDescriptionNode>() {

          @Override
          public ClassDescriptionNode value() {
            throw new NonLocalReturn(_aBlock.value(), _temp1);
          }
        })))).metaclassNode();
      }
      return _systemDefinitionNode.classNodeAt_ifAbsent_(_reference, ((st.gravel.support.jvm.Block0<ClassNode>) (new st.gravel.support.jvm.Block0<ClassNode>() {

        @Override
        public ClassNode value() {
          throw new NonLocalReturn(_aBlock.value(), _temp1);
        }
      })));
    } catch (NonLocalReturn nlr) {
      if (nlr.marker == _temp1) {
        return (ClassDescriptionNode) nlr.returnValue;
View Full Code Here

TOP

Related Classes of st.gravel.support.jvm.NonLocalReturn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.