PTP
Release 7.0

org.eclipse.ptp.pldt.common
Class ArtifactAnalysisBase

java.lang.Object
  extended by org.eclipse.ptp.pldt.common.ArtifactAnalysisBase
All Implemented Interfaces:
IArtifactAnalysis

public abstract class ArtifactAnalysisBase
extends java.lang.Object
implements IArtifactAnalysis

Base class for implementations of IArtifactAnalysis that handle C and C++.

This class contains the getAST(ITranslationUnit) utility method, which returns an IASTTranslationUnit for an ITranslationUnit.

Since:
6.0

Constructor Summary
ArtifactAnalysisBase()
           
 
Method Summary
protected  IASTTranslationUnit getAST(ITranslationUnit tu)
          Get AST from index, not full translation unti
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ptp.pldt.common.IArtifactAnalysis
runArtifactAnalysis
 

Constructor Detail

ArtifactAnalysisBase

public ArtifactAnalysisBase()
Method Detail

getAST

protected IASTTranslationUnit getAST(ITranslationUnit tu)
Get AST from index, not full translation unti

Parameters:
tu - translation unit from which to get the AST
Returns:
IASTTranslationUnit or null

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.