public ManLightParameterImpl( String name, PsiType type, PsiElement declarationScope, Language language ) { super( name, type, declarationScope, language ); PsiManager manager = declarationScope.getManager(); myNameIdentifier = new LightIdentifier( manager, name ); ReflectionUtil.setFinalFieldPerReflection( LightVariableBuilder.class, this, LightModifierList.class, new ManLightModifierListImpl( manager, language ) ); }
public HoldrLightParameter(@NotNull String name, @NotNull PsiType type, PsiElement declarationScope, Language language) { super(name, type, declarationScope, language); myName = name; PsiManager manager = declarationScope.getManager(); myNameIdentifier = new LightIdentifier(manager, name); myModifierList = new HoldrLightModifierList(manager); }
@NotNull @Override public PsiIdentifier createIdentifier(@NotNull final String text) throws IncorrectOperationException { PsiUtil.checkIsIdentifier(myManager, text); return new LightIdentifier(myManager, text); }
public ManLightFieldBuilderImpl( PsiManager manager, String name, PsiType type ) { super( manager, name, type ); _nameIdentifier = new LightIdentifier( manager, name ); }
public ManLightMethodBuilderImpl( PsiManager manager, String name ) { super( manager, JavaLanguage.INSTANCE, name, new LightParameterListBuilder( manager, JavaLanguage.INSTANCE ), new ManLightModifierListImpl( manager, JavaLanguage.INSTANCE ) ); _nameIdentifier = new LightIdentifier( manager, name ); }
@NotNull @Override public PsiIdentifier getNameIdentifier() { return new LightIdentifier(getManager(), myName); }
@NotNull @Override public PsiElement getNameIdentifierGroovy() { return new LightIdentifier(getManager(), getName()); }
@Override public PsiElement copy() { return new LightIdentifier(getManager(), getText()); }
@Override public PsiIdentifier getNameIdentifier() { return new LightIdentifier(myManager, getName()); }