return TextRange.from(0, getElement().getTextLength());
}
+ @NotNull
public String getCanonicalText() {
return getElement().getText();
}
return RegExpPropertyImpl.this;
}
+ @NotNull
public String getCanonicalText() {
return getRangeInElement().substring(getElement().getText());
}
return RegExpPyNamedGroupRefImpl.this.resolve();
}
+ @NotNull
public String getCanonicalText() {
return getRangeInElement().substring(getText());
}
}
+ @NotNull
public String getCanonicalText() {
return getText();
}
return this;
}
+ @NotNull
public String getCanonicalText() {
return myCanonicalText;
}
return new TextRange(0, getTextLength());
}
+ @NotNull
public String getCanonicalText() {
return myPatternExpression.getCanonicalText();
}
return false;
}
+ @NotNull
public String getCanonicalText() {
return myName;
}
return this;
}
+ @NotNull
public String getCanonicalText() {
String name = getQualifiedName();
if (name == null) return null;
return this;
}
+ @NotNull
public String getCanonicalText() {
String name = getQualifiedName();
if (name == null) return null;
return this;
}
+ @NotNull
public String getCanonicalText(){
return getText();
}
return advancedResolve(false).getElement();
}
+ @NotNull
public String getCanonicalText() {
return getContainingClass().getName();
}
return new TextRange(startOffset, startOffset + nameChild.getTextLength());
}
+ @NotNull
public String getCanonicalText() {
String canonicalText = myCanonicalText;
if (canonicalText == null) {
}
}
+ @NotNull
public String getCanonicalText() {
switch (getKind()) {
case CLASS_NAME_KIND:
return null;
}
+ @NotNull
public String getCanonicalText(){
return getElement().getText();
}
return false;
}
+ @NotNull
public String getCanonicalText() {
return getNameElement().getText();
}
return resultReference;
}
+ @NotNull
public String getCanonicalText() {
return valueToken.getText();
}
return myRange;
}
+ @NotNull
public String getCanonicalText() {
return myText;
}
return MethodSignatureUtil.findMethodBySignature(refClass, signature, false);
}
+ @NotNull
public String getCanonicalText() {
String name = getName();
return name != null ? name : PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME;
return null;
}
+ @NotNull
public String getCanonicalText() {
return null;
}
return (JavaResolveResult[])results;
}
+ @NotNull
public String getCanonicalText() {
PsiElement element = resolve();
if (element instanceof PsiClass) return ((PsiClass)element).getQualifiedName();
*
* @return the canonical text of the reference.
*/
+ @NotNull
String getCanonicalText();
/**
return manipulator.getRangeInElement(myElement);
}
+ @NotNull
public String getCanonicalText() {
return getValue();
}
return resolveResults.length == 1 ? resolveResults[0].getElement() : null;
}
+ @NotNull
public String getCanonicalText(){
final PsiReference reference = chooseReference();
return reference == null ? myReferences.get(0).getCanonicalText() : reference.getCanonicalText();
return myReferences.length > 1 && COMPARATOR.compare(myReferences[0], myReferences[1]) == 0;
}
+ @NotNull
public String getCanonicalText(){
return chooseReference().getCanonicalText();
}
return myRange;
}
+ @NotNull
public String getCanonicalText() {
return myText;
}
return ElementManipulators.getValueTextRange(myValue);
}
+ @NotNull
public String getCanonicalText() {
return myValue.getText();
}
return myXmlRef.resolve();
}
+ @NotNull
public String getCanonicalText() {
return myXmlRef.getCanonicalText();
}
return myTextRange;
}
+ @NotNull
public String getCanonicalText() {
return myText;
}
myXmlElement = xmlElement;
}
- @Nullable
+ @NotNull
public String getCanonicalText() {
String text = super.getCanonicalText();
if (text.indexOf("${") >= 0) {
return null;
}
+ @NotNull
public String getCanonicalText() {
return myRefExpr.getCanonicalText();
}
return new TextRange(offsetInParent, offsetInParent + refNameElement.getTextLength());
}
+ @NotNull
public String getCanonicalText() {
- return null;
+ return getRangeInElement().substring(getElement().getText());
}
public boolean isSoft() {
return results[0].getElement();
}
+ @NotNull
public String getCanonicalText() {
return getName();
}
return resolve() == element;
}
+ @NotNull
public String getCanonicalText() {
final String name = myStatement.getLabelName();
if (name == null) return "";
return ppParent instanceof GrAnnotation ? (GrAnnotation)ppParent : null;
}
+ @NotNull
public String getCanonicalText() {
- return null;
+ return getRangeInElement().substring(getText());
}
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
return resolveConstructor();
}
+ @NotNull
public String getCanonicalText() {
return getText(); //TODO
}
return null;
}
+ @NotNull
public String getCanonicalText() {
PsiElement resolved = resolve();
if (resolved instanceof PsiMember && resolved instanceof PsiNamedElement) {
return Kind.TYPE_OR_PROPERTY;
}
- @Nullable
+ @NotNull
public String getCanonicalText() {
- return null;
+ return getRangeInElement().substring(getElement().getText());
}
public boolean isReferenceTo(PsiElement element) {
return CLASS;
}
- @Nullable
+ @NotNull
public String getCanonicalText() {
PsiElement resolved = resolve();
if (resolved instanceof PsiClass) {
return myElement;
}
+ @NotNull
public String getCanonicalText() {
return myText;
}
return result;
}
+ @NotNull
public String getCanonicalText() {
return myBundleName;
}
return new TextRange(myRangeMarker.getStartOffset(), myRangeMarker.getEndOffset());
}
+ @NotNull
public String getCanonicalText() {
return getRangeText();
}
return null;
}
+ @NotNull
public String getCanonicalText() {
return nameNode.getText();
}
return context.resolve(this);
}
+ @NotNull
public String getCanonicalText() {
return getText();
}
return null;
}
+ @NotNull
public String getCanonicalText() {
return myAttribute.getValue();
}
return myValue.isValid() ? myTarget : null;
}
+ @NotNull
public String getCanonicalText() {
return myValue.getText();
}
myAttribute = attribute;
}
+ @NotNull
public String getCanonicalText() {
return getTextRange().substring(myAttribute.getValue());
}
return value == null ? null : resolveInner(value);
}
+ @NotNull
public String getCanonicalText() {
return getStringValue();
}
return XmlErrorMessages.message("unknown.encoding.0");
}
+ @NotNull
public String getCanonicalText() {
return myCharsetName;
}
return myRange;
}
+ @NotNull
public String getCanonicalText() {
final String s = myElement.getText();
if (myRange.getStartOffset() < s.length() && myRange.getEndOffset() <= s.length()) {
return null;
}
+ @NotNull
public String getCanonicalText() {
final XmlElement nameElement = myNameElement;
return nameElement != null ? nameElement.getText() : "";
return xmlEntityDecl;
}
+ @NotNull
public String getCanonicalText() {
return myRange.substring(myElement.getText());
}
return myElement.getParent().getParent();
}
+ @NotNull
public String getCanonicalText() {
String text = myElement.getText();
return text.substring(1,text.length()- 1);
return namespaceByPrefix;
}
+ @NotNull
public String getCanonicalText() {
final String text = myElement.getText();
String name = myRange.getEndOffset() < text.length() ? myRange.substring(text) : "";
return null;
}
+ @NotNull
public String getCanonicalText() {
final String text = myElement.getText();
if (text.length() > 1) {
import com.intellij.psi.xml.XmlTag;
import com.intellij.openapi.util.TextRange;
import com.intellij.util.IncorrectOperationException;
+import org.jetbrains.annotations.NotNull;
/**
* @author Dmitry Avdeev
return myRange;
}
+ @NotNull
public String getCanonicalText() {
return myRange.substring(myTag.getText());
}
return null;
}
+ @NotNull
public String getCanonicalText() {
return getNameElement().getText();
}
return descriptor != null ? descriptor.getDeclaration() : null;
}
+ @NotNull
public String getCanonicalText() {
return getName();
}
return (docTypePublic != null)?
super.getVariants(): EMPTY_ARRAY;
}
+ @NotNull
public String getCanonicalText() {
return extractValue(dtdUrlElement);
}
return null;
}
+ @NotNull
public String getCanonicalText() {
return myAnchor;
}