Package org.intellij.lang.jflex.psi.impl

Source Code of org.intellij.lang.jflex.psi.impl.JFlexOptionStatementBase

package org.intellij.lang.jflex.psi.impl;

import com.intellij.lang.ASTNode;
import org.intellij.lang.jflex.JFlexElementTypes;
import org.intellij.lang.jflex.psi.JFlexExpression;
import org.intellij.lang.jflex.psi.JFlexOptionStatement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* Created by IntelliJ IDEA.
* User: Max
* Date: 17.03.2008
* Time: 23:21:47
*/
public abstract class JFlexOptionStatementBase extends JFlexElementImpl implements JFlexOptionStatement {

    public JFlexOptionStatementBase(@NotNull ASTNode node) {
        super(node);
    }

    @Nullable
    public JFlexExpression getValue() {
        final ASTNode node = getNode().findChildByType(JFlexElementTypes.EXPRESSIONS);
        return (JFlexExpression) (node != null ? node.getPsi() : null);
    }

}
TOP

Related Classes of org.intellij.lang.jflex.psi.impl.JFlexOptionStatementBase

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.