org.jf.dexlib2.base.reference.BaseTypeReference Java Examples

The following examples show how to use org.jf.dexlib2.base.reference.BaseTypeReference. 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: ImmutableStartLocal.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getTypeReference() {
    return type==null?null:new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return type;
        }
    };
}
 
Example #2
Source File: BaseExceptionHandler.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getExceptionTypeReference() {
    final String exceptionType = getExceptionType();
    if (exceptionType == null) {
        return null;
    }

    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return exceptionType;
        }
    };
}
 
Example #3
Source File: RewriterUtils.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public static TypeReference rewriteTypeReference(@Nonnull final Rewriter<String> typeRewriter,
                                                 @Nonnull final TypeReference typeReference) {
    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return typeRewriter.rewrite(typeReference.getType());
        }
    };
}
 
Example #4
Source File: ImmutableStartLocal.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getTypeReference() {
    return type==null?null:new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return type;
        }
    };
}
 
Example #5
Source File: BaseExceptionHandler.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getExceptionTypeReference() {
    final String exceptionType = getExceptionType();
    if (exceptionType == null) {
        return null;
    }

    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return exceptionType;
        }
    };
}
 
Example #6
Source File: RewriterUtils.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public static TypeReference rewriteTypeReference(@Nonnull final Rewriter<String> typeRewriter,
                                                 @Nonnull final TypeReference typeReference) {
    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return typeRewriter.rewrite(typeReference.getType());
        }
    };
}
 
Example #7
Source File: ImmutableStartLocal.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getTypeReference() {
    return type==null?null:new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return type;
        }
    };
}
 
Example #8
Source File: BaseExceptionHandler.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getExceptionTypeReference() {
    final String exceptionType = getExceptionType();
    if (exceptionType == null) {
        return null;
    }

    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return exceptionType;
        }
    };
}
 
Example #9
Source File: RewriterUtils.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public static TypeReference rewriteTypeReference(@Nonnull final Rewriter<String> typeRewriter,
                                                 @Nonnull final TypeReference typeReference) {
    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return typeRewriter.rewrite(typeReference.getType());
        }
    };
}
 
Example #10
Source File: ImmutableStartLocal.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getTypeReference() {
    return type==null?null:new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return type;
        }
    };
}
 
Example #11
Source File: BaseExceptionHandler.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
@Nullable @Override public TypeReference getExceptionTypeReference() {
    final String exceptionType = getExceptionType();
    if (exceptionType == null) {
        return null;
    }

    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return exceptionType;
        }
    };
}
 
Example #12
Source File: RewriterUtils.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public static TypeReference rewriteTypeReference(@Nonnull final Rewriter<String> typeRewriter,
                                                 @Nonnull final TypeReference typeReference) {
    return new BaseTypeReference() {
        @Nonnull @Override public String getType() {
            return typeRewriter.rewrite(typeReference.getType());
        }
    };
}