intellij-sjson/gen/ru/crabs/sdk/language/psi/impl/SJsonItemImpl.java

61 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-04-02 18:33:41 +00:00
// This is a generated file. Not intended for manual editing.
package ru.crabs.sdk.language.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 ru.crabs.sdk.language.psi.SJsonTypes.*;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import ru.crabs.sdk.language.psi.*;
public class SJsonItemImpl extends ASTWrapperPsiElement implements SJsonItem {
public SJsonItemImpl(@NotNull ASTNode node) {
super(node);
}
public void accept(@NotNull SJsonVisitor visitor) {
visitor.visitItem(this);
}
@Override
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof SJsonVisitor) accept((SJsonVisitor)visitor);
else super.accept(visitor);
}
@Override
@Nullable
public SJsonArray getArray() {
return findChildByClass(SJsonArray.class);
}
@Override
@Nullable
public SJsonObject getObject() {
return findChildByClass(SJsonObject.class);
}
@Override
@Nullable
public SJsonVar getVar() {
return findChildByClass(SJsonVar.class);
}
@Override
@Nullable
public PsiElement getNumber() {
return findChildByType(NUMBER);
}
@Override
@Nullable
public PsiElement getString() {
return findChildByType(STRING);
}
}