mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-03 19:18:54 +01:00
56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
package org.json.simple.parser;
|
|
|
|
import com.amazon.alexa.ra.core.ui.markdown.parser.formatter.MarkdownConstants;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class Yytoken {
|
|
public static final int TYPE_COLON = 6;
|
|
public static final int TYPE_COMMA = 5;
|
|
public static final int TYPE_EOF = -1;
|
|
public static final int TYPE_LEFT_BRACE = 1;
|
|
public static final int TYPE_LEFT_SQUARE = 3;
|
|
public static final int TYPE_RIGHT_BRACE = 2;
|
|
public static final int TYPE_RIGHT_SQUARE = 4;
|
|
public static final int TYPE_VALUE = 0;
|
|
public int type;
|
|
public Object value;
|
|
|
|
public Yytoken(int i, Object obj) {
|
|
this.type = i;
|
|
this.value = obj;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
switch (this.type) {
|
|
case -1:
|
|
stringBuffer.append("END OF FILE");
|
|
break;
|
|
case 0:
|
|
stringBuffer.append("VALUE(");
|
|
stringBuffer.append(this.value);
|
|
stringBuffer.append(MarkdownConstants.RIGHT_PARENTHESIS);
|
|
break;
|
|
case 1:
|
|
stringBuffer.append("LEFT BRACE({)");
|
|
break;
|
|
case 2:
|
|
stringBuffer.append("RIGHT BRACE(})");
|
|
break;
|
|
case 3:
|
|
stringBuffer.append("LEFT SQUARE([)");
|
|
break;
|
|
case 4:
|
|
stringBuffer.append("RIGHT SQUARE(])");
|
|
break;
|
|
case 5:
|
|
stringBuffer.append("COMMA(,)");
|
|
break;
|
|
case 6:
|
|
stringBuffer.append("COLON(:)");
|
|
break;
|
|
}
|
|
return stringBuffer.toString();
|
|
}
|
|
}
|