Package org.jetbrains.yaml.psi

Examples of org.jetbrains.yaml.psi.YAMLArray


        if(!(psiElement.getContext() instanceof YAMLArray)) {
            return;
        }

        YAMLArray yamlArray = (YAMLArray) psiElement.getContext();
        if(!(yamlArray.getContext() instanceof YAMLCompoundValue)) {
            return;
        }

        YAMLCompoundValue yamlCompoundValue = (YAMLCompoundValue) yamlArray.getContext();
        if(!(yamlCompoundValue.getContext() instanceof YAMLKeyValue)) {
            return;
        }

        YAMLKeyValue yamlKeyValue = (YAMLKeyValue) yamlCompoundValue.getContext();
View Full Code Here


        // @TODO: simplify code checks
        if(!(psiElement.getContext() instanceof YAMLArray)) {
            return;
        }

        YAMLArray yamlCallParameterArray = (YAMLArray) psiElement.getContext();
        if(!(yamlCallParameterArray.getContext() instanceof YAMLArray)) {
            return;
        }

        YAMLArray yamlCallArray = (YAMLArray) yamlCallParameterArray.getContext();
        if(!(yamlCallArray.getContext() instanceof YAMLSequence)) {
            return;
        }

        List<PsiElement> methodParameter = YamlHelper.getYamlArrayValues(yamlCallArray);
        if(methodParameter.size() < 2) {
            return;
        }

        String methodName = PsiElementUtils.getText(methodParameter.get(0));

        YAMLSequence yamlSequence = (YAMLSequence) yamlCallArray.getContext();
        if(!(yamlSequence.getContext() instanceof YAMLCompoundValue)) {
            return;
        }

        YAMLCompoundValue yamlCompoundValue = (YAMLCompoundValue) yamlSequence.getContext();
View Full Code Here

TOP

Related Classes of org.jetbrains.yaml.psi.YAMLArray

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.