Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Programmatic ITypeBinding to be used for isAssignmentCompatible
Programmatic ITypeBinding to be used for isAssignmentCompatible [message #227500] Mon, 10 April 2006 05:37
Ahmed Ashour is currently offline Ahmed AshourFriend
Messages: 4
Registered: July 2009
Junior Member
Dear All,

I am interested to evaluate whether a given
ITypeBinding.isAssignmentCompatible with let's say
"java.util.logging.Logger"

I couldn't find a way to created the needed ITypeBinding

QualifiedType loggerType = ast.newQualifiedType( ast.newSimpleType(
ast.newName( new String[] { "java", "util", "logging" } ) ),
ast.newSimpleName("Logger" ) );

//loggerType.resolveBinding now is null

To be used in:

ITypeBinding typeBinding = .....;
if( typeBinding.isAssignmentCompatible( loggerType.resolveBinding() ) ) {

AST.newTypeLiteral(), and setType( loggerType ), again doesn't evalute it.

Any ideas, many thanks for your help.

Ahmed Ashour
Previous Topic:Patch management features
Next Topic:CVS version info in Java perspective
Goto Forum:
  


Current Time: Sat Apr 27 03:32:54 GMT 2024

Powered by FUDForum. Page generated in 0.02613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top