public class org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder extends org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.ByteToMessageDecoder
{
private final int maxFrameLength;
public void <init>(int)
{
int v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder v;
java.lang.IllegalArgumentException v;
v := @this: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder;
v := @parameter: int;
specialinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.ByteToMessageDecoder: void <init>()>();
if v >= 1 goto label;
v = new java.lang.IllegalArgumentException;
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>("maxFrameLength must be a positive int");
throw v;
label:
v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: int maxFrameLength> = v;
return;
}
protected void decode(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext, org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf, java.util.List) throws java.lang.Exception
{
byte v, v, v, v, v, v, v, v, v;
boolean v, v, v, v, v, v, v;
java.util.List v;
long v;
int v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf v, v;
v := @this: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf;
v := @parameter: java.util.List;
v = 0;
v = 0;
v = 0;
v = 0L;
v = 0;
v = 0;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int writerIndex()>();
v = v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: int maxFrameLength>;
if v <= v goto label;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int readableBytes()>();
virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf skipBytes(int)>(v);
specialinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: void fail(long)>(v);
return;
label:
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int readerIndex()>();
label:
if v >= v goto label;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 0 goto label;
v = staticinvoke <java.lang.Character: boolean isWhitespace(int)>(v);
if v == 0 goto label;
v = v + 1;
goto label;
label:
if v != 0 goto label;
if v == 60 goto label;
staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: void fail(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext)>(v);
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int readableBytes()>();
virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf skipBytes(int)>(v);
return;
label:
if v != 0 goto label;
if v != 60 goto label;
v = 1;
v = v - 1;
if v >= v goto label;
v = v + 1;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 47 goto label;
v = v + 2;
label:
v = v - 1;
if v > v goto label;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 62 goto label;
v = v - 1L;
goto label;
label:
v = v + 1;
goto label;
label:
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: boolean isValidStartCharForXmlElement(byte)>(v);
if v == 0 goto label;
v = 1;
v = v + 1L;
goto label;
label:
if v != 33 goto label;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: boolean isCommentBlockStart(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf,int)>(v, v);
if v == 0 goto label;
v = v + 1L;
goto label;
label:
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: boolean isCDATABlockStart(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf,int)>(v, v);
if v == 0 goto label;
v = v + 1L;
v = 1;
goto label;
label:
if v != 63 goto label;
v = v + 1L;
goto label;
label:
if v != 0 goto label;
if v != 47 goto label;
v = v - 1;
if v >= v goto label;
v = v + 1;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 62 goto label;
v = v - 1L;
goto label;
label:
if v != 62 goto label;
v = v + 1;
v = v - 1;
v = (int) -1;
if v <= v goto label;
v = v - 1;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 0 goto label;
if v != 63 goto label;
v = v - 1L;
goto label;
label:
if v != 45 goto label;
v = v - 2;
v = (int) -1;
if v <= v goto label;
v = v - 2;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 45 goto label;
v = v - 1L;
goto label;
label:
if v != 93 goto label;
v = v - 2;
v = (int) -1;
if v <= v goto label;
v = v - 2;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 93 goto label;
v = v - 1L;
v = 0;
label:
if v == 0 goto label;
v = v cmp 0L;
if v == 0 goto label;
label:
v = v + 1;
goto label;
label:
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int readerIndex()>();
v = v - v;
v = v cmp 0L;
if v != 0 goto label;
if v <= 0 goto label;
v = v + v;
if v < v goto label;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int readableBytes()>();
label:
v = v + v;
v = v - v;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf extractFrame(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf,int,int)>(v, v, v);
virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf skipBytes(int)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
return;
}
private void fail(long)
{
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder v;
long v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.TooLongFrameException v, v;
byte v;
int v, v;
java.lang.String v, v;
v := @this: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder;
v := @parameter: long;
v = v cmp 0L;
if v <= 0 goto label;
v = new org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.TooLongFrameException;
v = v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: int maxFrameLength>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int,long)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("frame length exceeds \u0001: \u - discarded");
specialinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.TooLongFrameException: void <init>(java.lang.String)>(v);
throw v;
label:
v = new org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.TooLongFrameException;
v = v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.xml.XmlFrameDecoder: int maxFrameLength>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("frame length exceeds \u - discarding");
specialinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.TooLongFrameException: void <init>(java.lang.String)>(v);
throw v;
}
private static void fail(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext)
{
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.CorruptedFrameException v;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext;
v = new org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.CorruptedFrameException;
specialinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.codec.CorruptedFrameException: void <init>(java.lang.String)>("frame contains content before the xml starts");
interfaceinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.channel.ChannelHandlerContext fireExceptionCaught(java.lang.Throwable)>(v);
return;
}
private static org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf extractFrame(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf, int, int)
{
int v, v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf v, v;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf;
v := @parameter: int;
v := @parameter: int;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf copy(int,int)>(v, v);
return v;
}
private static boolean isValidStartCharForXmlElement(byte)
{
byte v;
boolean v;
v := @parameter: byte;
if v < 97 goto label;
if v <= 122 goto label;
label:
if v < 65 goto label;
if v <= 90 goto label;
label:
if v == 58 goto label;
if v != 95 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private static boolean isCommentBlockStart(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf, int)
{
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf v;
byte v, v;
int v, v, v, v, v;
boolean v;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf;
v := @parameter: int;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int writerIndex()>();
v = v - 3;
if v >= v goto label;
v = v + 2;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 45 goto label;
v = v + 3;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 45 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private static boolean isCDATABlockStart(org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf, int)
{
byte v, v, v, v, v, v, v;
int v, v, v, v, v, v, v, v, v, v;
boolean v;
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf v;
v := @parameter: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf;
v := @parameter: int;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: int writerIndex()>();
v = v - 8;
if v >= v goto label;
v = v + 2;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 91 goto label;
v = v + 3;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 67 goto label;
v = v + 4;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 68 goto label;
v = v + 5;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 65 goto label;
v = v + 6;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 84 goto label;
v = v + 7;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 65 goto label;
v = v + 8;
v = virtualinvoke v.<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.buffer.ByteBuf: byte getByte(int)>(v);
if v != 91 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
}