org.androidtransfuse.analysis.adapter
Class ASTUtils

Package class diagram package ASTUtils
java.lang.Object
  extended by org.androidtransfuse.analysis.adapter.ASTUtils

public final class ASTUtils
extends Object

Utility singleton for AST classes.

Author:
John Ericksen

Method Summary
 ASTAnnotation getAnnotation(Class resourceClass, Collection<ASTAnnotation> annotations)
           
static ASTUtils getInstance()
           
 boolean inherits(ASTType astType, ASTType inheritable, boolean implement, boolean extend)
          Determines if the given ASTType inherits or extends from the given inheritable ASTType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 - target
inheritable - inheritance target
implement - flag to trigger the method to search for implements inheritance
extend - 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.