-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
1,243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,40 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
|
||
"""Command Set: ReferenceType.""" | ||
|
||
from jdwp.defs.schema import CommandSet | ||
from jdwp.defs.commands.reference_type import ( | ||
Signature, | ||
ClassLoader, | ||
Modifiers, | ||
Fields, | ||
Methods, | ||
GetValues, | ||
SourceFile, | ||
NestedTypes, | ||
Status, | ||
Interfaces, | ||
ClassObject, | ||
SourceDebugExtension, | ||
SignatureWithGeneric, | ||
FieldsWithGeneric, | ||
MethodsWithGeneric, | ||
Instances, | ||
ClassFileVersion, | ||
ConstantPool, | ||
from jdwp.defs.schema import CommandSet, Type | ||
from jdwp.defs.schema import Command, Field, Struct | ||
from projects.jdwp.defs.constants import ErrorType | ||
from collections.abc import Sequence | ||
|
||
|
||
Signature = Command( | ||
name="Signature", | ||
id=1, | ||
out=Struct( | ||
[ | ||
Field("refType", Type.REFERENCE_TYPE_ID, "The Reference type ID."), | ||
] | ||
), | ||
reply=Struct( | ||
[ | ||
Field( | ||
"signature", Type.STRING, "The JNI signature for the reference type." | ||
), | ||
] | ||
), | ||
error=Sequence[ | ||
ErrorType.INVALID_CLASS, | ||
ErrorType.INVALID_OBJECT, | ||
ErrorType.VM_DEAD, | ||
], | ||
) | ||
|
||
|
||
ReferenceType = CommandSet( | ||
name="VirtualMachine", | ||
name="ReferenceType", | ||
id=2, | ||
commands=[ | ||
Signature, | ||
ClassLoader, | ||
Modifiers, | ||
Fields, | ||
Methods, | ||
GetValues, | ||
SourceFile, | ||
NestedTypes, | ||
Status, | ||
Interfaces, | ||
ClassObject, | ||
SourceDebugExtension, | ||
SignatureWithGeneric, | ||
FieldsWithGeneric, | ||
MethodsWithGeneric, | ||
Instances, | ||
ClassFileVersion, | ||
ConstantPool, | ||
], | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.