from __future__ import annotations
import collections.abc
import datetime
import typing
from warnings import deprecated # type: ignore

import jpype # type: ignore
import jpype.protocol # type: ignore

import generic.stl
import ghidra.pcodeCPort.slghsymbol
import ghidra.pcodeCPort.translate
import ghidra.program.model.pcode
import ghidra.sleigh.grammar
import java.lang # type: ignore
import java.util # type: ignore


class NamedSymbolProvider(java.lang.Object):

    class_: typing.ClassVar[java.lang.Class]

    def findSymbol(self, nm: typing.Union[java.lang.String, str]) -> ghidra.pcodeCPort.slghsymbol.SleighSymbol:
        ...


class SleighBase(ghidra.pcodeCPort.translate.Translate, NamedSymbolProvider):

    class_: typing.ClassVar[java.lang.Class]
    MAX_UNIQUE_SIZE: typing.Final = 256
    """
    Note: The value of :obj:`.MAX_UNIQUE_SIZE` must match the corresponding value defined by
    sleighbase.cc
    """


    def __init__(self) -> None:
        ...

    def encode(self, encoder: ghidra.program.model.pcode.Encoder) -> None:
        ...

    def findSymbol(self, id: typing.Union[jpype.JInt, int]) -> ghidra.pcodeCPort.slghsymbol.SleighSymbol:
        ...

    def isInitialized(self) -> bool:
        ...

    def parseIntegerLiteral(self, loc: ghidra.sleigh.grammar.Location, text: typing.Union[java.lang.String, str]) -> ghidra.sleigh.grammar.RadixBigInteger:
        ...

    @property
    def initialized(self) -> jpype.JBoolean:
        ...


class address_set(generic.stl.SetSTL[ghidra.pcodeCPort.slghsymbol.VarnodeSymbol]):
    ...
    class_: typing.ClassVar[java.lang.Class]


@typing.type_check_only
class VarnodeSymbolCompare(java.util.Comparator[ghidra.pcodeCPort.slghsymbol.VarnodeSymbol]):
    ...
    class_: typing.ClassVar[java.lang.Class]



__all__ = ["NamedSymbolProvider", "SleighBase", "address_set", "VarnodeSymbolCompare"]
