org.androidtransfuse.analysis.adapter
Class ASTUtils
java.lang.Object
org.androidtransfuse.analysis.adapter.ASTUtils
public final class ASTUtils
- extends Object
Utility singleton for AST classes.
- Author:
- John Ericksen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ASTUtils getInstance()
inherits
public boolean inherits(ASTType astType,
ASTType inheritable,
boolean implement,
boolean extend)
- Determines if the given ASTType inherits or extends from the given inheritable ASTType
- Parameters:
astType - targetinheritable - inheritance targetimplement - flag to trigger the method to search for implements inheritanceextend - flag to trigger the method to search for extends inheritance
- Returns:
- true if the given astType target inherits from the inheritable type with the given rules.
getAnnotation
public ASTAnnotation getAnnotation(Class resourceClass,
Collection<ASTAnnotation> annotations)
Copyright © 2012. All Rights Reserved.