class javax.swing.text.JTextComponent$InputMethodRequestsHandler implements java.awt.im.InputMethodRequests, javax.swing.event.DocumentListener
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: javax.swing.text.JTextComponent$InputMethodRequestsHandler
super_class: java.lang.Object
{
final javax.swing.text.JTextComponent this$0;
descriptor: Ljavax/swing/text/JTextComponent;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(javax.swing.text.JTextComponent);
descriptor: (Ljavax/swing/text/JTextComponent;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
MethodParameters:
Name Flags
this$0 final
public java.text.AttributedCharacterIterator cancelLatestCommittedText(java.text.AttributedCharacterIterator$Attribute[]);
descriptor: ([Ljava/text/AttributedCharacterIterator$Attribute;)Ljava/text/AttributedCharacterIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 2
start local 2 1: aload 2
ifnull 11
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
ifnull 11
2: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.latestCommittedTextEnd:Ljavax/swing/text/Position;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 11
3: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 3
start local 3 4: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.latestCommittedTextEnd:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 4
start local 4 5: aload 2
iload 3
iload 4
iload 3
isub
invokeinterface javax.swing.text.Document.getText:(II)Ljava/lang/String;
6: astore 5
start local 5 7: aload 2
iload 3
iload 4
iload 3
isub
invokeinterface javax.swing.text.Document.remove:(II)V
8: new java.text.AttributedString
dup
aload 5
invokespecial java.text.AttributedString.<init>:(Ljava/lang/String;)V
invokevirtual java.text.AttributedString.getIterator:()Ljava/text/AttributedCharacterIterator;
9: areturn
end local 5 end local 4 end local 3 10: StackMap locals: javax.swing.text.JTextComponent$InputMethodRequestsHandler java.text.AttributedCharacterIterator$Attribute[] javax.swing.text.Document
StackMap stack: javax.swing.text.BadLocationException
pop
11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 12 1 attributes [Ljava/text/AttributedCharacterIterator$Attribute;
1 12 2 doc Ljavax/swing/text/Document;
4 10 3 startIndex I
5 10 4 endIndex I
7 10 5 latestCommittedText Ljava/lang/String;
Exception table:
from to target type
3 9 10 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
attributes
public java.text.AttributedCharacterIterator getCommittedText(int, int, java.text.AttributedCharacterIterator$Attribute[]);
descriptor: (II[Ljava/text/AttributedCharacterIterator$Attribute;)Ljava/text/AttributedCharacterIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: iconst_0
istore 5
start local 5 2: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.composedTextExists:()Z
ifeq 5
3: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 4
4: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextEnd:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 5
5: StackMap locals: int int
StackMap stack:
iload 1
iload 4
if_icmpge 14
6: iload 2
iload 4
if_icmpgt 9
7: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
iload 1
iload 2
iload 1
isub
invokevirtual javax.swing.text.JTextComponent.getText:(II)Ljava/lang/String;
astore 6
start local 6 8: goto 20
end local 6 9: StackMap locals:
StackMap stack:
iload 4
iload 1
isub
istore 7
start local 7 10: new java.lang.StringBuilder
dup
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
iload 1
iload 7
invokevirtual javax.swing.text.JTextComponent.getText:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
iload 5
iload 2
iload 1
isub
iload 7
isub
invokevirtual javax.swing.text.JTextComponent.getText:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
end local 7 start local 6 13: goto 20
end local 6 14: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
iload 1
iload 5
iload 4
isub
iadd
15: iload 2
iload 1
isub
16: invokevirtual javax.swing.text.JTextComponent.getText:(II)Ljava/lang/String;
astore 6
start local 6 17: goto 20
end local 6 StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
18: pop
19: new java.lang.IllegalArgumentException
dup
ldc "Invalid range"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 6 20: StackMap locals: java.lang.String
StackMap stack:
new java.text.AttributedString
dup
aload 6
invokespecial java.text.AttributedString.<init>:(Ljava/lang/String;)V
invokevirtual java.text.AttributedString.getIterator:()Ljava/text/AttributedCharacterIterator;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 21 1 beginIndex I
0 21 2 endIndex I
0 21 3 attributes [Ljava/text/AttributedCharacterIterator$Attribute;
1 21 4 composedStartIndex I
2 21 5 composedEndIndex I
8 9 6 committed Ljava/lang/String;
13 14 6 committed Ljava/lang/String;
17 18 6 committed Ljava/lang/String;
20 21 6 committed Ljava/lang/String;
10 13 7 firstPartLength I
Exception table:
from to target type
5 17 18 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
beginIndex
endIndex
attributes
public int getCommittedTextLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getDocument:()Ljavax/swing/text/Document;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 1
ifnull 12
3: aload 1
invokeinterface javax.swing.text.Document.getLength:()I
istore 2
4: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextContent:Ljava/lang/String;
ifnull 12
5: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextEnd:Ljavax/swing/text/Position;
ifnull 7
6: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
ifnonnull 9
7: StackMap locals: javax.swing.text.Document int
StackMap stack:
iload 2
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextContent:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
isub
istore 2
8: goto 12
9: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextEnd:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
10: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
11: isub
isub
istore 2
12: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
1 13 1 doc Ljavax/swing/text/Document;
2 13 2 length I
public int getInsertPositionOffset();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.composedTextExists:()Z
ifeq 5
3: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 1
4: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextEnd:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
istore 2
5: StackMap locals: int int
StackMap stack:
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
istore 3
start local 3 6: iload 3
iload 1
if_icmpge 8
7: iload 3
ireturn
8: StackMap locals: int
StackMap stack:
iload 3
iload 2
if_icmpge 10
9: iload 1
ireturn
10: StackMap locals:
StackMap stack:
iload 3
iload 2
iload 1
isub
isub
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
1 11 1 composedStartIndex I
2 11 2 composedEndIndex I
6 11 3 caretIndex I
public java.awt.font.TextHitInfo getLocationOffset(int, int);
descriptor: (II)Ljava/awt/font/TextHitInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextAttribute:Ljavax/swing/text/SimpleAttributeSet;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getLocationOnScreen:()Ljava/awt/Point;
astore 3
start local 3 3: aload 3
iload 1
aload 3
getfield java.awt.Point.x:I
isub
putfield java.awt.Point.x:I
4: aload 3
iload 2
aload 3
getfield java.awt.Point.y:I
isub
putfield java.awt.Point.y:I
5: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 3
invokevirtual javax.swing.text.JTextComponent.viewToModel:(Ljava/awt/Point;)I
istore 4
start local 4 6: iload 4
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
if_icmplt 9
7: iload 4
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextEnd:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
if_icmpgt 9
8: iload 4
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
getfield javax.swing.text.JTextComponent.composedTextStart:Ljavax/swing/text/Position;
invokeinterface javax.swing.text.Position.getOffset:()I
isub
invokestatic java.awt.font.TextHitInfo.leading:(I)Ljava/awt/font/TextHitInfo;
areturn
9: StackMap locals: java.awt.Point int
StackMap stack:
aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 10 1 x I
0 10 2 y I
3 10 3 p Ljava/awt/Point;
6 10 4 pos I
MethodParameters:
Name Flags
x
y
public java.awt.Rectangle getTextLocation(java.awt.font.TextHitInfo);
descriptor: (Ljava/awt/font/TextHitInfo;)Ljava/awt/Rectangle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getCaretPosition:()I
invokevirtual javax.swing.text.JTextComponent.modelToView:(I)Ljava/awt/Rectangle;
astore 2
start local 2 1: aload 2
ifnull 7
2: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getLocationOnScreen:()Ljava/awt/Point;
astore 3
start local 3 3: aload 2
aload 3
getfield java.awt.Point.x:I
aload 3
getfield java.awt.Point.y:I
invokevirtual java.awt.Rectangle.translate:(II)V
end local 3 4: goto 7
end local 2 StackMap locals:
StackMap stack: javax.swing.text.BadLocationException
5: pop
6: aconst_null
astore 2
start local 2 7: StackMap locals: java.awt.Rectangle
StackMap stack:
aload 2
ifnonnull 9
8: new java.awt.Rectangle
dup
invokespecial java.awt.Rectangle.<init>:()V
astore 2
9: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 10 1 offset Ljava/awt/font/TextHitInfo;
1 5 2 r Ljava/awt/Rectangle;
7 10 2 r Ljava/awt/Rectangle;
3 4 3 p Ljava/awt/Point;
Exception table:
from to target type
0 4 5 Class javax.swing.text.BadLocationException
MethodParameters:
Name Flags
offset
public java.text.AttributedCharacterIterator getSelectedText(java.text.AttributedCharacterIterator$Attribute[]);
descriptor: ([Ljava/text/AttributedCharacterIterator$Attribute;)Ljava/text/AttributedCharacterIterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
invokevirtual javax.swing.text.JTextComponent.getSelectedText:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 3
2: new java.text.AttributedString
dup
aload 2
invokespecial java.text.AttributedString.<init>:(Ljava/lang/String;)V
invokevirtual java.text.AttributedString.getIterator:()Ljava/text/AttributedCharacterIterator;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 4 1 attributes [Ljava/text/AttributedCharacterIterator$Attribute;
1 4 2 selection Ljava/lang/String;
MethodParameters:
Name Flags
attributes
public void changedUpdate(javax.swing.event.DocumentEvent);
descriptor: (Ljavax/swing/event/DocumentEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aconst_null
dup_x1
putfield javax.swing.text.JTextComponent.latestCommittedTextEnd:Ljavax/swing/text/Position;
putfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 2 1 e Ljavax/swing/event/DocumentEvent;
MethodParameters:
Name Flags
e
public void insertUpdate(javax.swing.event.DocumentEvent);
descriptor: (Ljavax/swing/event/DocumentEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aconst_null
dup_x1
putfield javax.swing.text.JTextComponent.latestCommittedTextEnd:Ljavax/swing/text/Position;
putfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 2 1 e Ljavax/swing/event/DocumentEvent;
MethodParameters:
Name Flags
e
public void removeUpdate(javax.swing.event.DocumentEvent);
descriptor: (Ljavax/swing/event/DocumentEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aload 0
getfield javax.swing.text.JTextComponent$InputMethodRequestsHandler.this$0:Ljavax/swing/text/JTextComponent;
aconst_null
dup_x1
putfield javax.swing.text.JTextComponent.latestCommittedTextEnd:Ljavax/swing/text/Position;
putfield javax.swing.text.JTextComponent.latestCommittedTextStart:Ljavax/swing/text/Position;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/swing/text/JTextComponent$InputMethodRequestsHandler;
0 2 1 e Ljavax/swing/event/DocumentEvent;
MethodParameters:
Name Flags
e
}
SourceFile: "JTextComponent.java"
NestHost: javax.swing.text.JTextComponent
InnerClasses:
public Attribute = java.text.AttributedCharacterIterator$Attribute of java.text.AttributedCharacterIterator
InputMethodRequestsHandler = javax.swing.text.JTextComponent$InputMethodRequestsHandler of javax.swing.text.JTextComponent