Package org.codehaus.groovy.vmplugin.v8
Enum Class IndyInterface.CallType
- All Implemented Interfaces:
Serializable,Comparable<IndyInterface.CallType>,Constable
- Enclosing class:
- IndyInterface
Enum for easy differentiation between call types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IndyInterface.CallTypefromCallSiteName(String callSiteName) Resolves a call type by its bootstrap call-site name.Returns the name of the call site typeintReturns the ordinal used as the call-site dispatch id.static IndyInterface.CallTypeReturns the enum constant of this class with the specified name.static IndyInterface.CallType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METHOD
Method invocation type. -
INIT
Constructor invocation type. -
GET
Get property invocation type. -
SET
Set property invocation type. -
CAST
Cast invocation type. -
INTERFACE
Interface method invocation type. -
COMPOUND_ASSIGN
Compound-assignment invocation type (GEP-15), e.g.+=. The bootstrapnamecarriesassignNameandbaseNamepacked as"assignName baseName"; resolution is delegated toIndyCompoundAssign.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCallSiteName
Returns the name of the call site type -
fromCallSiteName
Resolves a call type by its bootstrap call-site name.- Parameters:
callSiteName- the bootstrap call-site name- Returns:
- the matching call type, or
nullif none matches
-
getOrderNumber
public int getOrderNumber()Returns the ordinal used as the call-site dispatch id.- Returns:
- the call-type order number
-