class Java::Field

Constants

ACC_ENUM
ACC_FINAL
ACC_PRIVATE
ACC_PROTECTED
ACC_PUBLIC
ACC_STATIC
ACC_SYNTHETIC
ACC_TRANSIENT
ACC_VOLATILE

Attributes

annotations[R]
flags[R]
java_type[R]
name[R]
vm_type[R]

Public Class Methods

new(flags, name, vm_type, annotations) click to toggle source
Calls superclass method Java::Annotatable::new
# File lib/java_dissassembler/field.rb, line 15
def initialize(flags, name, vm_type, annotations)
  super(annotations)
  @flags = flags
  @name = name
  @vm_type = vm_type
end

Public Instance Methods

is_enum?() click to toggle source
# File lib/java_dissassembler/field.rb, line 54
def is_enum?
  (@flags & ACC_ENUM) != 0
end
is_final?() click to toggle source
# File lib/java_dissassembler/field.rb, line 38
def is_final?
  (@flags & ACC_FINAL) != 0
end
is_private?() click to toggle source
# File lib/java_dissassembler/field.rb, line 26
def is_private?
  (@flags & ACC_PRIVATE) != 0
end
is_protected?() click to toggle source
# File lib/java_dissassembler/field.rb, line 30
def is_protected?
  (@flags & ACC_PROTECTED) != 0
end
is_public?() click to toggle source
# File lib/java_dissassembler/field.rb, line 22
def is_public?
  (@flags & ACC_PUBLIC) != 0
end
is_static?() click to toggle source
# File lib/java_dissassembler/field.rb, line 34
def is_static?
  (@flags & ACC_STATIC) != 0
end
is_synthetic?() click to toggle source
# File lib/java_dissassembler/field.rb, line 50
def is_synthetic?
  (@flags & ACC_SYNTHETIC) != 0
end
is_transient?() click to toggle source
# File lib/java_dissassembler/field.rb, line 46
def is_transient?
  (@flags & ACC_TRANSIENT) != 0
end
is_volatile?() click to toggle source
# File lib/java_dissassembler/field.rb, line 42
def is_volatile?
  (@flags & ACC_VOLATILE) != 0
end