Package org.jruby.util
Class IdUtil
java.lang.Object
org.jruby.util.IdUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]private static int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intBIT(int c, int index) static 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 booleanisNameCharacter19(char c) Deprecated.static booleanisNameString(String id, int start, int limit) static booleanisNameString19(String id, int start, int limit) Deprecated.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.private static booleanisSpecialGlobalName(byte c) static booleanstatic booleanstatic booleanDeprecated.static booleanprivate static intSPECIAL_PUNCT(int idx)
-
Field Details
-
globalPunctuationBits
private static int[] globalPunctuationBits -
globalNamePunctuationBits
private static final int[] globalNamePunctuationBits
-
-
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
-
isValidConstantName19
Deprecated. -
isNameCharacter19
Deprecated. -
isNameString19
Deprecated. -
determineSymbolNameType
-
BIT
private static int BIT(int c, int index) -
SPECIAL_PUNCT
private static int SPECIAL_PUNCT(int idx) -
isSpecialGlobalName
private static boolean isSpecialGlobalName(byte c)
-