Skip to content

Commit 18819ad

Browse files
committed
Prefix Rex
1 parent 191dc29 commit 18819ad

File tree

14 files changed

+39
-39
lines changed

14 files changed

+39
-39
lines changed

lib/rex/java/serialization/model/annotation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(stream = nil)
1818
self.contents = []
1919
end
2020

21-
# Deserializes a Java::Serialization::Model::Annotation
21+
# Deserializes a Rex::Java::Serialization::Model::Annotation
2222
#
2323
# @param io [IO] the io to read from
2424
# @return [self] if deserialization succeeds
@@ -33,7 +33,7 @@ def decode(io)
3333
self
3434
end
3535

36-
# Serializes the Java::Serialization::Model::Annotation
36+
# Serializes the Rex::Java::Serialization::Model::Annotation
3737
#
3838
# @return [String] if serialization suceeds
3939
# @raise [RuntimeError] if serialization doesn't succeed

lib/rex/java/serialization/model/block_data.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(stream = nil, contents = '')
2020
self.length = contents.length
2121
end
2222

23-
# Deserializes a Java::Serialization::Model::BlockData
23+
# Deserializes a Rex::Java::Serialization::Model::BlockData
2424
#
2525
# @param io [IO] the io to read from
2626
# @return [self] if deserialization succeeds
@@ -52,7 +52,7 @@ def to_s
5252
"[ #{contents_hex.join(', ')} ]"
5353
end
5454

55-
# Serializes the Java::Serialization::Model::BlockData
55+
# Serializes the Rex::Java::Serialization::Model::BlockData
5656
#
5757
# @return [String]
5858
def encode

lib/rex/java/serialization/model/block_data_long.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(stream = nil, contents = '')
2020
self.length = contents.length
2121
end
2222

23-
# Deserializes a Java::Serialization::Model::BlockDataLong
23+
# Deserializes a Rex::Java::Serialization::Model::BlockDataLong
2424
#
2525
# @param io [IO] the io to read from
2626
# @return [self] if deserialization succeeds
@@ -44,7 +44,7 @@ def decode(io)
4444
self
4545
end
4646

47-
# Serializes the Java::Serialization::Model::BlockDataLong
47+
# Serializes the Rex::Java::Serialization::Model::BlockDataLong
4848
#
4949
# @return [String]
5050
def encode

lib/rex/java/serialization/model/class_desc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(stream = nil)
1515
self.description = nil
1616
end
1717

18-
# Deserializes a Java::Serialization::Model::ClassDesc
18+
# Deserializes a Rex::Java::Serialization::Model::ClassDesc
1919
#
2020
# @param io [IO] the io to read from
2121
# @return [self] if deserialization succeeds
@@ -32,7 +32,7 @@ def decode(io)
3232
self
3333
end
3434

35-
# Serializes the Java::Serialization::Model::ClassDesc
35+
# Serializes the Rex::Java::Serialization::Model::ClassDesc
3636
#
3737
# @return [String] if serialization succeeds
3838
# @raise [RuntimeError] if serialization doesn't succeed

lib/rex/java/serialization/model/element.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ class Element
66

77
attr_accessor :stream
88

9-
# Deserializes a Java::Serialization::Model::Element
9+
# Deserializes a Rex::Java::Serialization::Model::Element
1010
#
1111
# @param io [IO] the io to read from
12-
# @return [Java::Serialization::Model::Element] if deserialization succeeds
12+
# @return [Rex::Java::Serialization::Model::Element] if deserialization succeeds
1313
# @return [nil] if deserialization doesn't succeed
1414
def self.decode(io, stream = nil)
1515
elem = self.new(stream)

lib/rex/java/serialization/model/field.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class Field < Element
1212
# @return [String] The type of the field.
1313
attr_accessor :type
1414
# @!attribute name
15-
# @return [Java::Serialization::Model::Utf] The name of the field.
15+
# @return [Rex::Java::Serialization::Model::Utf] The name of the field.
1616
attr_accessor :name
1717
# @!attribute field_type
18-
# @return [Java::Serialization::Model::Utf] The type of the field on object types.
18+
# @return [Rex::Java::Serialization::Model::Utf] The type of the field on object types.
1919
attr_accessor :field_type
2020

2121
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
@@ -26,7 +26,7 @@ def initialize(stream = nil)
2626
self.field_type = nil
2727
end
2828

29-
# Deserializes a Java::Serialization::Model::Field
29+
# Deserializes a Rex::Java::Serialization::Model::Field
3030
#
3131
# @param io [IO] the io to read from
3232
# @return [self] if deserialization succeeds
@@ -48,12 +48,12 @@ def decode(io)
4848
self
4949
end
5050

51-
# Serializes the Java::Serialization::Model::Field
51+
# Serializes the Rex::Java::Serialization::Model::Field
5252
#
5353
# @return [String] if serialization succeeds
5454
# @raise [RuntimeError] if serialization doesn't succeed
5555
def encode
56-
unless name.class == Java::Serialization::Model::Utf
56+
unless name.class == Rex::Java::Serialization::Model::Utf
5757
raise ::RuntimeError, 'Failed to serialize Field'
5858
end
5959

lib/rex/java/serialization/model/long_utf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Model
55
# This class provides a Long Utf string representation
66
class LongUtf < Utf
77

8-
# Deserializes a Java::Serialization::Model::LongUtf
8+
# Deserializes a Rex::Java::Serialization::Model::LongUtf
99
#
1010
# @param io [IO] the io to read from
1111
# @return [self] if deserialization succeeds
@@ -29,7 +29,7 @@ def decode(io)
2929
self
3030
end
3131

32-
# Serializes the Java::Serialization::Model::LongUtf
32+
# Serializes the Rex::Java::Serialization::Model::LongUtf
3333
#
3434
# @return [String]
3535
def encode

lib/rex/java/serialization/model/new_array.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(stream = nil)
2525
self.values = []
2626
end
2727

28-
# Deserializes a Java::Serialization::Model::NewArray
28+
# Deserializes a Rex::Java::Serialization::Model::NewArray
2929
#
3030
# @param io [IO] the io to read from
3131
# @return [self] if deserialization succeeds
@@ -45,7 +45,7 @@ def decode(io)
4545
self
4646
end
4747

48-
# Serializes the Java::Serialization::Model::NewArray
48+
# Serializes the Rex::Java::Serialization::Model::NewArray
4949
#
5050
# @return [String] if serialization succeeds
5151
# @raise [RuntimeError] if serialization doesn't succeed

lib/rex/java/serialization/model/new_class_desc.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class NewClassDesc < Element
88
include Rex::Java::Serialization
99

1010
# @!attribute class_name
11-
# @return [Java::Serialization::Model::Utf] The name of the class
11+
# @return [Rex::Java::Serialization::Model::Utf] The name of the class
1212
attr_accessor :class_name
1313
# @!attribute name
1414
# @return [Integer] The java class serial version
@@ -20,10 +20,10 @@ class NewClassDesc < Element
2020
# @return [Array] The java class fields
2121
attr_accessor :fields
2222
# @!attribute fields
23-
# @return [Java::Serialization::Model::Annotation] The java class annotations
23+
# @return [Rex::Java::Serialization::Model::Annotation] The java class annotations
2424
attr_accessor :class_annotation
2525
# @!attribute super_class
26-
# @return [Java::Serialization::Model::ClassDesc] The java class superclass description
26+
# @return [Rex::Java::Serialization::Model::ClassDesc] The java class superclass description
2727
attr_accessor :super_class
2828

2929
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
@@ -37,7 +37,7 @@ def initialize(stream = nil)
3737
self.super_class = nil
3838
end
3939

40-
# Deserializes a Java::Serialization::Model::ClassDescription
40+
# Deserializes a Rex::Java::Serialization::Model::ClassDescription
4141
#
4242
# @param io [IO] the io to read from
4343
# @return [self] if deserialization succeeds
@@ -59,14 +59,14 @@ def decode(io)
5959
self
6060
end
6161

62-
# Serializes the Java::Serialization::Model::ClassDescription
62+
# Serializes the Rex::Java::Serialization::Model::ClassDescription
6363
#
6464
# @return [String] if serialization succeeds
6565
# @raise [RuntimeError] if serialization doesn't succeed
6666
def encode
67-
unless class_name.class == Java::Serialization::Model::Utf &&
68-
class_annotation.class == Java::Serialization::Model::Annotation &&
69-
super_class.class == Java::Serialization::Model::ClassDesc
67+
unless class_name.class == Rex::Java::Serialization::Model::Utf &&
68+
class_annotation.class == Rex::Java::Serialization::Model::Annotation &&
69+
super_class.class == Rex::Java::Serialization::Model::ClassDesc
7070
raise ::RuntimeError, 'Filed to serialize NewClassDesc'
7171
end
7272
encoded = ''

lib/rex/java/serialization/model/new_enum.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class NewEnum < Element
88
include Rex::Java::Serialization::Model::Contents
99

1010
# @!attribute enum_description
11-
# @return [Java::Serialization::Model::ClassDescription] The description of the enum
11+
# @return [Rex::Java::Serialization::Model::ClassDescription] The description of the enum
1212
attr_accessor :enum_description
1313
# @!attribute constant_name
14-
# @return [Java::Serialization::Model::Utf] The constant value in the Java Enum
14+
# @return [Rex::Java::Serialization::Model::Utf] The constant value in the Java Enum
1515
attr_accessor :constant_name
1616

1717
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
@@ -21,7 +21,7 @@ def initialize(stream = nil)
2121
self.constant_name = nil
2222
end
2323

24-
# Deserializes a Java::Serialization::Model::NewEnum
24+
# Deserializes a Rex::Java::Serialization::Model::NewEnum
2525
#
2626
# @param io [IO] the io to read from
2727
# @return [self] if deserialization succeeds
@@ -34,7 +34,7 @@ def decode(io)
3434
self
3535
end
3636

37-
# Serializes the Java::Serialization::Model::NewEnum
37+
# Serializes the Rex::Java::Serialization::Model::NewEnum
3838
#
3939
# @return [String] if serialization succeeds
4040
# @raise [RuntimeError] if serialization doesn't succeed

0 commit comments

Comments
 (0)