Java Code Examples for org.jf.dexlib2.iface.instruction.SwitchElement#getKey()

The following examples show how to use org.jf.dexlib2.iface.instruction.SwitchElement#getKey() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImmutableSwitchElement.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nonnull
public static ImmutableSwitchElement of(SwitchElement switchElement) {
    if (switchElement instanceof  ImmutableSwitchElement) {
        return (ImmutableSwitchElement)switchElement;
    }
    return new ImmutableSwitchElement(
            switchElement.getKey(),
            switchElement.getOffset());
}
 
Example 2
Source File: ImmutableSwitchElement.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
@Nonnull
public static ImmutableSwitchElement of(SwitchElement switchElement) {
    if (switchElement instanceof  ImmutableSwitchElement) {
        return (ImmutableSwitchElement)switchElement;
    }
    return new ImmutableSwitchElement(
            switchElement.getKey(),
            switchElement.getOffset());
}
 
Example 3
Source File: ImmutableSwitchElement.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
@Nonnull
public static ImmutableSwitchElement of(SwitchElement switchElement) {
    if (switchElement instanceof  ImmutableSwitchElement) {
        return (ImmutableSwitchElement)switchElement;
    }
    return new ImmutableSwitchElement(
            switchElement.getKey(),
            switchElement.getOffset());
}
 
Example 4
Source File: ImmutableSwitchElement.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nonnull
public static ImmutableSwitchElement of(SwitchElement switchElement) {
    if (switchElement instanceof  ImmutableSwitchElement) {
        return (ImmutableSwitchElement)switchElement;
    }
    return new ImmutableSwitchElement(
            switchElement.getKey(),
            switchElement.getOffset());
}