Package com.strobel.assembler.metadata

Examples of com.strobel.assembler.metadata.MemberReference


  }
 
  @Override
  public Void visitIdentifierExpression( IdentifierExpression node, SourceIndex index )
  {
    MemberReference ref = node.getUserData( Keys.MEMBER_REFERENCE );
    if( ref != null )
    {
      ClassEntry classEntry = new ClassEntry( ref.getDeclaringType().getInternalName() );
      FieldEntry fieldEntry = new FieldEntry( classEntry, ref.getName() );
      index.addReference( node.getIdentifierToken(), fieldEntry, m_behaviorEntry );
    }
   
    return recurse( node, index );
  }
View Full Code Here


  }
 
  @Override
  public Void visitObjectCreationExpression( ObjectCreationExpression node, SourceIndex index )
  {
    MemberReference ref = node.getUserData( Keys.MEMBER_REFERENCE );
    if( ref != null )
    {
      ClassEntry classEntry = new ClassEntry( ref.getDeclaringType().getInternalName() );
      ConstructorEntry constructorEntry = new ConstructorEntry( classEntry, ref.getSignature() );
      if( node.getType() instanceof SimpleType )
      {
        SimpleType simpleTypeNode = (SimpleType)node.getType();
        index.addReference( simpleTypeNode.getIdentifierToken(), constructorEntry, m_behaviorEntry );
      }
View Full Code Here

TOP

Related Classes of com.strobel.assembler.metadata.MemberReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.