Skip to main content



      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 01:37
Eclipse UserFriend
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: Fri Nov 07 01:29:59 EST 2025

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

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

Back to the top