blob: 0692cd49e05b96d5c350698c1b03b5091e529007 [file] [log] [blame]
package com.intellij.dupLocator.equivalence;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author Eugene.Kudelevsky
*/
public class SingleChildDescriptor {
private final MyType myType;
private final PsiElement myElement;
public SingleChildDescriptor(@NotNull MyType type, @Nullable PsiElement element) {
myType = type;
myElement = element;
}
@NotNull
public MyType getType() {
return myType;
}
@Nullable
public PsiElement getElement() {
return myElement;
}
public static enum MyType {
DEFAULT,
OPTIONALLY,
OPTIONALLY_IN_PATTERN,
CHILDREN,
CHILDREN_OPTIONALLY,
CHILDREN_OPTIONALLY_IN_PATTERN,
CHILDREN_IN_ANY_ORDER
}
}