Package org.jruby.util
Class IdUtil
java.lang.Object
org.jruby.util.IdUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolNameTypedetermineSymbolNameType(Ruby runtime, ByteList data) static booleanstatic booleanrb_is_class_id and is_class_idstatic booleanisConstant(String id) rb_is_const_id and is_const_idstatic booleanisConstantInitial(ByteList byteList) static booleanrb_is_global_id and is_global_idstatic booleanisInitialCharacter(int c) static booleanrb_is_instance_id and is_instance_idstatic booleanDeprecated.static booleanisNameCharacter(char c) static booleanisNameString(String id, int start, int limit) static booleanisPredicate(String id) static final booleanisRubyVariable(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 booleanWe store IR special variables (e.g.static booleanstatic booleanstatic 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
-