// This is a generated file. Not intended for manual editing.
package com.jetbrains.commandInterface.commandLine.psi.impl;
-import java.util.List;
-import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
-import com.intellij.psi.util.PsiTreeUtil;
-import static com.jetbrains.commandInterface.commandLine.CommandLineElementTypes.*;
-import com.jetbrains.commandInterface.commandLine.CommandLineElement;
-import com.jetbrains.commandInterface.commandLine.psi.*;
import com.jetbrains.commandInterface.command.Argument;
import com.jetbrains.commandInterface.command.Help;
import com.jetbrains.commandInterface.command.Option;
+import com.jetbrains.commandInterface.commandLine.CommandLineElement;
+import com.jetbrains.commandInterface.commandLine.psi.CommandLineArgument;
+import com.jetbrains.commandInterface.commandLine.psi.CommandLineVisitor;
+import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
+
+import static com.jetbrains.commandInterface.commandLine.CommandLineElementTypes.*;
public class CommandLineArgumentImpl extends CommandLineElement implements CommandLineArgument {
return findChildByType(LITERAL_STARTS_FROM_LETTER);
}
+ @Override
+ @Nullable
+ public PsiElement getLiteralStartsFromSymbol() {
+ return findChildByType(LITERAL_STARTS_FROM_SYMBOL);
+ }
+
@Nullable
public Option findOptionForOptionArgument() {
return CommandLinePsiImplUtils.findOptionForOptionArgument(this);
+++ /dev/null
-// This is a generated file. Not intended for manual editing.
-package com.jetbrains.commandInterface.commandLine.psi.impl;
-
-import com.intellij.lang.ASTNode;
-import com.intellij.psi.PsiElement;
-import com.intellij.psi.PsiElementVisitor;
-import com.jetbrains.commandInterface.command.Argument;
-import com.jetbrains.commandInterface.command.Help;
-import com.jetbrains.commandInterface.command.Option;
-import com.jetbrains.commandInterface.commandLine.CommandLineElement;
-import com.jetbrains.commandInterface.commandLine.psi.CommandLineArgument;
-import com.jetbrains.commandInterface.commandLine.psi.CommandLineVisitor;
-import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
-import static com.jetbrains.commandInterface.commandLine.CommandLineElementTypes.*;
-
-public class CommandLineArgumentImpl extends CommandLineElement implements CommandLineArgument {
-
- public CommandLineArgumentImpl(ASTNode node) {
- super(node);
- }
-
- public void accept(@NotNull PsiElementVisitor visitor) {
- if (visitor instanceof CommandLineVisitor) ((CommandLineVisitor)visitor).visitArgument(this);
- else super.accept(visitor);
- }
-
- @Override
- @Nullable
- public PsiElement getLiteralStartsFromDigit() {
- return findChildByType(LITERAL_STARTS_FROM_DIGIT);
- }
-
- @Override
- @Nullable
- public PsiElement getLiteralStartsFromLetter() {
- return findChildByType(LITERAL_STARTS_FROM_LETTER);
- }
-
- @Override
- @Nullable
- public PsiElement getLiteralStartsFromSymbol() {
- return findChildByType(LITERAL_STARTS_FROM_SYMBOL);
- }
-
- @Nullable
- public Option findOptionForOptionArgument() {
- return CommandLinePsiImplUtils.findOptionForOptionArgument(this);
- }
-
- @Nullable
- public Argument findRealArgument() {
- return CommandLinePsiImplUtils.findRealArgument(this);
- }
-
- @Nullable
- public Help findBestHelp() {
- return CommandLinePsiImplUtils.findBestHelp(this);
- }
-
-}