Examples of IType


Examples of com.google.enterprise.connector.dctm.dfcwrap.IType

    return includedProperties;
  }

  private Set<String> getSysObjectAttributes(ISession sess)
      throws RepositoryException {
    IType type = sess.getType("dm_sysobject");
    HashSet<String> attributes = new HashSet<String>();
    for (int j = 0; j < type.getTypeAttrCount(); j++) {
      String attrName = type.getTypeAttrNameAt(j);
      logger.config("dm_sysobject attribute: " + attrName);
      attributes.add(attrName);
    }
    return attributes;
  }
View Full Code Here

Examples of com4j.tlbimp.def.IType

    /**
     * Computes the return type for disp-only interface.
     */
    protected final IType getDispInterfaceReturnType() {
        IType r = method.getReturnType();

        // if the return type is HRESULT, bind it to 'void'.
        // dispinterfaces defined by C++ often uses HRESULT
        // as the return value
        IPrimitiveType pt = r.queryInterface(IPrimitiveType.class);
        if(pt!=null && pt.getVarType()== VarType.VT_HRESULT)
            return null;

        return r;
    }
View Full Code Here

Examples of gw.lang.reflect.IType

  public Map<String,IType> getColumnMap() {
    HashMap<String, IType> cols = new HashMap<String, IType>();
    if (hasSpecificColumns()) {
      for (SQLParsedElement col : _selectList.getChildren()) {
        IDBColumnType type = col.getDBType();
        IType gosuType = type == null ? JavaTypes.OBJECT() : type.getGosuType();
        if (col instanceof ColumnReference) {
          cols.put(((ColumnReference) col).getName(), gosuType);
        } else if (col instanceof DerivedColumn) {
          cols.put(((DerivedColumn) col).getName(), gosuType);
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

    int length = paramTypeNames.length;
   
    char[] tName = CharOperation.concat(declaringTypePackageName,declaringTypeName,'.');
    Object cachedType = this.completionEngine.typeCache.get(tName);
   
    IType type = null;
    if(cachedType != null) {
      if(cachedType != NO_ATTACHED_SOURCE && cachedType instanceof BinaryType) {
        type = (BinaryType)cachedType;
      }
    } else {
      // TODO (david) shouldn't it be NameLookup.ACCEPT_ALL ?
      NameLookup.Answer answer = this.nameLookup.findType(new String(tName),
        false,
        NameLookup.ACCEPT_CLASSES & NameLookup.ACCEPT_INTERFACES,
        true/* consider secondary types */,
        false/* do NOT wait for indexes */,
        false/*don't check restrictions*/,
        null);
      type = answer == null ? null : answer.type;
      if(type instanceof BinaryType){
        this.completionEngine.typeCache.put(tName, type);
      } else {
        type = null;
      }
    }
   
    if(type != null) {
      String[] args = new String[length];
      for(int i = 0;  i< length ; i++){
        args[i] = new String(paramTypeNames[i]);
      }
      IMethod method = type.getMethod(new String(selector),args);
      try{
        parameterNames = new char[length][];
        String[] params = method.getParameterNames();
        for(int i = 0;  i< length ; i++){
          parameterNames[i] = params[i].toCharArray();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

* Returns the source used to generate this node.
*/
protected String generateSyntaxIncorrectAST() {
  //create some dummy source to generate an ast node
  StringBuffer buff = new StringBuffer();
  IType type = getType();
  String lineSeparator = org.aspectj.org.eclipse.jdt.internal.core.util.Util.getLineSeparator(this.source, type == null ? null : type.getJavaProject());
  buff.append(lineSeparator + " public class A {" + lineSeparator); //$NON-NLS-1$
  buff.append(this.source);
  buff.append(lineSeparator).append('}');
  ASTParser parser = ASTParser.newParser(AST.JLS3);
  parser.setSource(buff.toString().toCharArray());
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

      progressMonitor);
    if (answer == null) {
      // try to find enclosing type
      int lastDot = fullyQualifiedName.lastIndexOf('.');
      if (lastDot == -1) return null;
      IType type = findType(fullyQualifiedName.substring(0, lastDot), lookup, considerSecondaryTypes, progressMonitor);
      if (type != null) {
        type = type.getType(fullyQualifiedName.substring(lastDot+1));
        if (!type.exists()) {
          return null;
        }
      }
      return type;
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

* By default the new field is positioned after the last existing field
* declaration, or as the first member in the type if there are no
* field declarations.
*/
protected void initializeDefaultPosition() {
  IType parentElement = getType();
  try {
    IField[] fields = parentElement.getFields();
    if (fields != null && fields.length > 0) {
      final IField lastField = fields[fields.length - 1];
      if (parentElement.isEnum()) {
        IField field = lastField;
        if (!field.isEnumConstant()) {
          createAfter(lastField);
        }
      } else {
        createAfter(lastField);
      }
    } else {
      IJavaElement[] elements = parentElement.getChildren();
      if (elements != null && elements.length > 0) {
        createBefore(elements[0]);
      }
    }
  } catch (JavaModelException e) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

/**
* @see CreateTypeMemberOperation#verifyNameCollision
*/
protected IJavaModelStatus verifyNameCollision() {
  if (this.createdNode != null) {
    IType type= getType();
    String fieldName = getASTNodeName();
    if (type.getField(fieldName).exists()) {
      return new JavaModelStatus(
        IJavaModelStatusConstants.NAME_COLLISION,
        Messages.bind(Messages.status_nameCollision, fieldName));
    }
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

          case IJavaElement.CLASS_FILE :
          case IJavaElement.COMPILATION_UNIT :
            openables.add(root);
            break;
          case IJavaElement.TYPE :
            IType type = (IType)root;
            if (type.isBinary()) {
              openables.add(type.getClassFile());
            } else {
              openables.add(type.getCompilationUnit());
            }
            break;
          default :
            break;
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.IType

* By default the new initializer is positioned after the last existing initializer
* declaration, or as the first member in the type if there are no
* initializers.
*/
protected void initializeDefaultPosition() {
  IType parentElement = getType();
  try {
    IJavaElement[] elements = parentElement.getInitializers();
    if (elements != null && elements.length > 0) {
      this.numberOfInitializers = elements.length;
      createAfter(elements[elements.length - 1]);
    } else {
      elements = parentElement.getChildren();
      if (elements != null && elements.length > 0) {
        createBefore(elements[0]);
      }
    }
  } catch (JavaModelException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.