public final class TextWithImportsImpl extends java.lang.Object implements TextWithImports
Constructor and Description |
---|
TextWithImportsImpl(CodeFragmentKind kind,
java.lang.String text) |
TextWithImportsImpl(CodeFragmentKind kind,
java.lang.String text,
java.lang.String imports,
FileType fileType) |
TextWithImportsImpl(PsiElement expression) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
static TextWithImports |
fromXExpression(XExpression expression) |
FileType |
getFileType() |
java.lang.String |
getImports() |
CodeFragmentKind |
getKind() |
java.lang.String |
getText() |
int |
hashCode() |
boolean |
isEmpty() |
void |
setText(java.lang.String newText) |
java.lang.String |
toExternalForm() |
java.lang.String |
toString() |
static XExpression |
toXExpression(TextWithImports text) |
public TextWithImportsImpl(PsiElement expression)
public TextWithImportsImpl(CodeFragmentKind kind, java.lang.String text, java.lang.String imports, FileType fileType)
public TextWithImportsImpl(CodeFragmentKind kind, java.lang.String text)
public CodeFragmentKind getKind()
getKind
in interface TextWithImports
public java.lang.String getText()
getText
in interface TextWithImports
public java.lang.String getImports()
getImports
in interface TextWithImports
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toExternalForm()
toExternalForm
in interface TextWithImports
public int hashCode()
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface TextWithImports
public void setText(java.lang.String newText)
setText
in interface TextWithImports
public FileType getFileType()
getFileType
in interface TextWithImports
public static XExpression toXExpression(TextWithImports text)
public static TextWithImports fromXExpression(XExpression expression)