← Python API
vraven.decompiler · class

MechanismRole

MechanismRole(*values)

Typed high-level operation vocabulary used by the mechanism dialect.

Usage

from vraven.decompiler import MechanismRole

value = MechanismRole(...)

Methods

capitalize(self, /)

Return a capitalized version of the string.

casefold(self, /)

Return a version of the string suitable for caseless comparisons.

center(self, width, fillchar=' ', /)

Return a centered string of length width.

count

Return the number of non-overlapping occurrences of substring sub in string S[start:end].

encode(self, /, encoding='utf-8', errors='strict')

Encode the string using the codec registered for encoding.

endswith

Return True if the string ends with the specified suffix, False otherwise.

expandtabs(self, /, tabsize=8)

Return a copy where all tab characters are expanded using spaces.

find

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

format(self, /, *args, **kwargs)

Return a formatted version of the string, using substitutions from args and kwargs. The substitutions are identified by braces ('{' and '}').

format_map(self, mapping, /)

Return a formatted version of the string, using substitutions from mapping. The substitutions are identified by braces ('{' and '}').

index

Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].

isalnum(self, /)

Return True if the string is an alpha-numeric string, False otherwise.

isalpha(self, /)

Return True if the string is an alphabetic string, False otherwise.

isascii(self, /)

Return True if all characters in the string are ASCII, False otherwise.

isdecimal(self, /)

Return True if the string is a decimal string, False otherwise.

isdigit(self, /)

Return True if the string is a digit string, False otherwise.

isidentifier(self, /)

Return True if the string is a valid Python identifier, False otherwise.

islower(self, /)

Return True if the string is a lowercase string, False otherwise.

isnumeric(self, /)

Return True if the string is a numeric string, False otherwise.

isprintable(self, /)

Return True if all characters in the string are printable, False otherwise.

isspace(self, /)

Return True if the string is a whitespace string, False otherwise.

istitle(self, /)

Return True if the string is a title-cased string, False otherwise.

isupper(self, /)

Return True if the string is an uppercase string, False otherwise.

join(self, iterable, /)

Concatenate any number of strings.

ljust(self, width, fillchar=' ', /)

Return a left-justified string of length width.

lower(self, /)

Return a copy of the string converted to lowercase.

lstrip(self, chars=None, /)

Return a copy of the string with leading whitespace removed.

maketrans

Return a translation table usable for str.translate().

partition(self, sep, /)

Partition the string into three parts using the given separator.

removeprefix(self, prefix, /)

Return a str with the given prefix string removed if present.

removesuffix(self, suffix, /)

Return a str with the given suffix string removed if present.

replace(self, old, new, /, count=-1)

Return a copy with all occurrences of substring old replaced by new.

rfind

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rindex

Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].

rjust(self, width, fillchar=' ', /)

Return a right-justified string of length width.

rpartition(self, sep, /)

Partition the string into three parts using the given separator.

rsplit(self, /, sep=None, maxsplit=-1)

Return a list of the substrings in the string, using sep as the separator string.

rstrip(self, chars=None, /)

Return a copy of the string with trailing whitespace removed.

split(self, /, sep=None, maxsplit=-1)

Return a list of the substrings in the string, using sep as the separator string.

splitlines(self, /, keepends=False)

Return a list of the lines in the string, breaking at line boundaries.

startswith

Return True if the string starts with the specified prefix, False otherwise.

strip(self, chars=None, /)

Return a copy of the string with leading and trailing whitespace removed.

swapcase(self, /)

Convert uppercase characters to lowercase and lowercase characters to uppercase.

title(self, /)

Return a version of the string where each word is titlecased.

translate(self, table, /)

Replace each character in the string using the given translation table.

upper(self, /)

Return a copy of the string converted to uppercase.

zfill(self, width, /)

Pad a numeric string with zeros on the left, to fill a field of the given width.

Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.