Examples of GrMethod


Examples of org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod

            super(SpockLabel.WHERE);
        }

        @Override
        protected void doVisitLabeledStatement(@NotNull GrLabeledStatement labeledStatement, GrLabeledStatement nextLabeledStatement) {
            GrMethod method = null;
            PsiElement parent = labeledStatement.getParent();
            while (parent != null && method == null) {
                if (GrMethod.class.isAssignableFrom(parent.getClass())) {
                    method = (GrMethod) parent;
                } else {
                    parent = parent.getParent();
                }
            }
            if (method != null) {
                GrModifierList modifierList = method.getModifierList();
                boolean foundUnroll = false;
                for (GrAnnotation annotation : modifierList.getAnnotations()) {
                    if (SpockConstants.UNROLL_ANNOTATION.equals(annotation.getShortName())) {
                        foundUnroll = true;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.