Class CodeRefinementIntent
java.lang.Object
uno.anahata.asi.intellij.tools.java.coderefiner.CodeRefinementIntent
A single structural, member-level modification to one Java file, applied by
BatchCodeRefiner against the live PSI tree.
This is the IntelliJ counterpart of the NetBeans V4 CodeRefinementIntent. Each
intent targets a class (for CodeRefinementIntent.Type.INSERT) or an existing member by canonical FQN
(for CodeRefinementIntent.Type.UPDATE/CodeRefinementIntent.Type.DELETE/CodeRefinementIntent.Type.MOVE); the member source is
supplied verbatim in declaration and parsed by the IntelliJ PSI element factory.
- Author:
- anahata
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kind of structural modification performed by an intent. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe simple name of the anchor member for BEFORE/AFTER placement (INSERT/MOVE).private StringThe canonical FQN of the class to insert into (for INSERT).private StringThe verbatim Java source of the member (for INSERT/UPDATE), including any Javadoc, annotations and modifiers.private StringThe canonical FQN of the member to update/delete/move (method or field).private RelativePositionThe placement of the member relative to the class body or anchor (INSERT/MOVE).private StringA short human rationale for this change (surfaced to the user, not applied).private CodeRefinementIntent.TypeThe kind of modification to perform. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
The kind of modification to perform. -
classFqn
The canonical FQN of the class to insert into (for INSERT). -
memberFqn
The canonical FQN of the member to update/delete/move (method or field). -
declaration
The verbatim Java source of the member (for INSERT/UPDATE), including any Javadoc, annotations and modifiers. -
position
The placement of the member relative to the class body or anchor (INSERT/MOVE). -
anchorMemberName
The simple name of the anchor member for BEFORE/AFTER placement (INSERT/MOVE). -
reason
A short human rationale for this change (surfaced to the user, not applied).
-
-
Constructor Details
-
CodeRefinementIntent
public CodeRefinementIntent()
-

