parent
84ea54eb1e
commit
63b8d35d08
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class AALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class AASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class ACONST_NULL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class ALOAD extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_aload_0, opc_aload_1, opc_aload_2, opc_aload_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_aload); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class ANEWARRAY extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_anewarray); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class ARETURN extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class ARRAYLENGTH extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class ASTORE extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_astore_0, opc_astore_1, opc_astore_2, opc_astore_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_astore); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class ATHROW extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class BALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class BASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,48 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class BIPUSH extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = |
|
||||||
new int[]{opc_iconst_m1, opc_iconst_0, opc_iconst_1, opc_iconst_2, opc_iconst_3, opc_iconst_4, opc_iconst_5}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int value = getOperand(0); |
|
||||||
if (value < -1 || value > 5) { |
|
||||||
out.writeByte(opc_bipush); |
|
||||||
out.writeByte(value); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[value + 1]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int value = getOperand(0); |
|
||||||
if (value < -1 || value > 5) { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class CALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class CASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,34 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class CHECKCAST extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_checkcast); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class D2F extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class D2I extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class D2L extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DADD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DCMPG extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DCMPL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DCONST_0 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DCONST_1 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DDIV extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class DLOAD extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_dload_0, opc_dload_1, opc_dload_2, opc_dload_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_dload); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DMUL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DNEG extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DREM extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DRETURN extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class DSTORE extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_dstore_0, opc_dstore_1, opc_dstore_2, opc_dstore_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_dstore); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DSUB extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP2 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP2_X1 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP2_X2 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP_X1 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class DUP_X2 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class F2D extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class F2I extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class F2L extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FADD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FCMPG extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FCMPL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FCONST_0 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FCONST_1 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FCONST_2 extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FDIV extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class FLOAD extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_fload_0, opc_fload_1, opc_fload_2, opc_fload_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_fload); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FMUL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FNEG extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FREM extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FRETURN extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,60 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class FSTORE extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_fstore_0, opc_fstore_1, opc_fstore_2, opc_fstore_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_fstore); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
return 4; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 2; |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class FSUB extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class GETFIELD extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_getfield); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class GETSTATIC extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_getstatic); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,46 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class GOTO extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int operand = getOperand(0); |
|
||||||
if (operand < -32768 || operand > 32767) { |
|
||||||
out.writeByte(opc_goto_w); |
|
||||||
out.writeInt(operand); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opc_goto); |
|
||||||
out.writeShort(operand); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int operand = getOperand(0); |
|
||||||
if (operand < -32768 || operand > 32767) { |
|
||||||
return 5; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class GOTO_W extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_goto_w); |
|
||||||
out.writeInt(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 5; |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2B extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2C extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2D extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2F extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2L extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class I2S extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IADD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IALOAD extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IAND extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IASTORE extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IDIV extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFEQ extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifeq); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFGE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifge); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFGT extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifgt); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFLE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifle); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFLT extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_iflt); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFNE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifne); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFNONNULL extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifnonnull); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IFNULL extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_ifnull); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,34 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ACMPEQ extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_acmpeq); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ACMPNE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_acmpne); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPEQ extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmpeq); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPGE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmpge); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPGT extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmpgt); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPLE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmple); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPLT extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmplt); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.JumpInstruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IF_ICMPNE extends JumpInstruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_if_icmpne); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,43 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class IINC extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_iinc); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
out.writeShort(getOperand(1)); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(getOperand(0)); |
|
||||||
out.writeByte(getOperand(1)); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return wide ? 6 : 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,55 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class ILOAD extends Instruction { |
|
||||||
|
|
||||||
private static int[] opcodes = new int[]{opc_iload_0, opc_iload_1, opc_iload_2, opc_iload_3}; |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
if (wide) { |
|
||||||
out.writeByte(opc_wide); |
|
||||||
} |
|
||||||
out.writeByte(opc_iload); |
|
||||||
if (wide) { |
|
||||||
out.writeShort(index); |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(index); |
|
||||||
} |
|
||||||
} |
|
||||||
else { |
|
||||||
out.writeByte(opcodes[index]); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
int index = getOperand(0); |
|
||||||
if (index > 3) { |
|
||||||
return wide ? 4 : 2; |
|
||||||
} |
|
||||||
else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IMUL extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class INEG extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class INSTANCEOF extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_instanceof); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,35 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class INVOKEINTERFACE extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_invokeinterface); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
out.writeByte(getOperand(1)); |
|
||||||
out.writeByte(0); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 5; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class INVOKESPECIAL extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_invokespecial); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class INVOKESTATIC extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_invokestatic); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
import java.io.DataOutputStream; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
public class INVOKEVIRTUAL extends Instruction { |
|
||||||
|
|
||||||
public void writeToStream(DataOutputStream out, int offset) throws IOException { |
|
||||||
out.writeByte(opc_invokevirtual); |
|
||||||
out.writeShort(getOperand(0)); |
|
||||||
} |
|
||||||
|
|
||||||
public int length() { |
|
||||||
return 3; |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IOR extends Instruction { |
|
||||||
|
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
/* |
|
||||||
* Copyright 2000-2014 JetBrains s.r.o. |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
*/ |
|
||||||
package org.jetbrains.java.decompiler.code.instructions; |
|
||||||
|
|
||||||
import org.jetbrains.java.decompiler.code.Instruction; |
|
||||||
|
|
||||||
public class IREM extends Instruction { |
|
||||||
|
|
||||||
} |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue