Module: Rubeus::Extensions::Java::Lang::Reflect::Method

Defined in:
lib/rubeus/extensions/java/lang/reflect/method.rb

Constant Summary collapse

MODIFIER =
java.lang.reflect.Modifier
MODIFIER_SYMBOLS =
MODIFIER.constants.map{|const_name| const_name.downcase.to_sym}.freeze

Instance Method Summary collapse

Instance Method Details

#modifier_symbolsObject



10
11
12
# File 'lib/rubeus/extensions/java/lang/reflect/method.rb', line 10

def modifier_symbols
  MODIFIER_SYMBOLS.select{|sym| send("#{sym}?")}
end

#package_scope?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/rubeus/extensions/java/lang/reflect/method.rb', line 5

def package_scope?
  !(private? || protected? || public?)
end