Package org.jruby.util
Class IdUtil
java.lang.Object
org.jruby.util.IdUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolNameType
determineSymbolNameType
(Ruby runtime, ByteList data) static boolean
static boolean
rb_is_class_id and is_class_idstatic boolean
isConstant
(String id) rb_is_const_id and is_const_idstatic boolean
isConstantInitial
(ByteList byteList) static boolean
rb_is_global_id and is_global_idstatic boolean
isInitialCharacter
(int c) static boolean
rb_is_instance_id and is_instance_idstatic boolean
Deprecated.static boolean
isNameCharacter
(char c) static boolean
isNameString
(String id, int start, int limit) static boolean
isPredicate
(String id) static final boolean
isRubyVariable
(String name) Check the syntax of a Ruby variable, including that it's longer than zero characters, and starts with either an @ or a capital letter.static boolean
We store IR special variables (e.g.static boolean
static boolean
static boolean
-
Constructor Details
-
IdUtil
public IdUtil()
-
-
Method Details
-
isConstant
rb_is_const_id and is_const_id -
isClassVariable
rb_is_class_id and is_class_id -
isInstanceVariable
rb_is_instance_id and is_instance_id -
isGlobal
rb_is_global_id and is_global_id -
isPredicate
-
isLocal
Deprecated.rb_is_local_id and is_local_id -
isSpecial
We store IR special variables (e.g. %block) in scope and we want reflective Ruby methods to not see these since they are not real variables...they're special. -
isAttrSet
-
isValidConstantName
-
isValidInstanceVariableName
-
isValidClassVariableName
-
isInitialCharacter
public static boolean isInitialCharacter(int c) -
isNameCharacter
public static boolean isNameCharacter(char c) -
isNameString
-
isRubyVariable
Check the syntax of a Ruby variable, including that it's longer than zero characters, and starts with either an @ or a capital letter. -
isConstantInitial
-
determineSymbolNameType
-