1 // This is a generated file. Not intended for manual editing.
2 package com.jetbrains.commandInterface.commandLine.psi.impl;
4 import com.intellij.lang.ASTNode;
5 import com.intellij.psi.PsiElement;
6 import com.intellij.psi.PsiElementVisitor;
7 import com.jetbrains.commandInterface.command.Argument;
8 import com.jetbrains.commandInterface.command.Help;
9 import com.jetbrains.commandInterface.command.Option;
10 import com.jetbrains.commandInterface.commandLine.CommandLineElement;
11 import com.jetbrains.commandInterface.commandLine.psi.CommandLineArgument;
12 import com.jetbrains.commandInterface.commandLine.psi.CommandLineVisitor;
13 import org.jetbrains.annotations.NotNull;
14 import org.jetbrains.annotations.Nullable;
16 import static com.jetbrains.commandInterface.commandLine.CommandLineElementTypes.*;
18 public class CommandLineArgumentImpl extends CommandLineElement implements CommandLineArgument {
20 public CommandLineArgumentImpl(ASTNode node) {
24 public void accept(@NotNull PsiElementVisitor visitor) {
25 if (visitor instanceof CommandLineVisitor) ((CommandLineVisitor)visitor).visitArgument(this);
26 else super.accept(visitor);
31 public PsiElement getLiteralStartsFromDigit() {
32 return findChildByType(LITERAL_STARTS_FROM_DIGIT);
37 public PsiElement getLiteralStartsFromLetter() {
38 return findChildByType(LITERAL_STARTS_FROM_LETTER);
43 public PsiElement getLiteralStartsFromSymbol() {
44 return findChildByType(LITERAL_STARTS_FROM_SYMBOL);
48 public Option findOptionForOptionArgument() {
49 return CommandLinePsiImplUtils.findOptionForOptionArgument(this);
53 public Argument findRealArgument() {
54 return CommandLinePsiImplUtils.findRealArgument(this);
58 public Help findBestHelp() {
59 return CommandLinePsiImplUtils.findBestHelp(this);