The type of the parameter for a constructor parameter. Can be one of "primitive" or "object".
@param string $instanceName
@param int $index
@return string
508211
public function isConstructorParameterObjectOrPrimitive($instanceName, $index) {
		if (isset($this->declaredInstances[$instanceName]['constructor'][$index]['parametertype'])) {
			return $this->declaredInstances[$instanceName]['constructor'][$index]['parametertype'];
		} else {
			return null;
		}
	}
1298038
@ExportInstanceMethod
	public static String getType(GeometryIndex instance) {
		switch (instance.getType()) {
			case TYPE_GEOMETRY:
				return "geometry";
			case TYPE_VERTEX:
				return "vertex";
			case TYPE_EDGE:
				return "edge";
			default:
				return "unknown";
		}
	}
272566
private function getAnonymousInstanceName($instanceName) {
        // Let's find a name for this anonymous instance
        $anonInstanceName = $instanceName;
        // Let's find where the anonymous instance is used.
        do {
            $parents = $this->moufManager->getOwnerComponents($anonInstanceName);
            // There should be only one parent, since this is an anonymous instance
            $anonInstanceName = current($parents);
        } while ($this->moufManager->getInstanceDescriptor($anonInstanceName)->isAnonymous());

        return "Anonymous (parent: ".$anonInstanceName.")";
    }
359031
public static function instanceName($project, $location, $instance)
    {
        return self::getInstanceNameTemplate()->render([
            'project' => $project,
            'location' => $location,
            'instance' => $instance,
        ]);
    }
1042111
public function getInstance($objectName)
    {
        return isset($this->objects[$objectName]['i']) ? $this->objects[$objectName]['i'] : null;
    }
483544
public function getNameByIndex($index)
    {
        return isset($this->names[$index]) ? $this->names[$index] : null;
    }
241679
private function getByIndex($index)
    {
        if (!isset($this->headers[$index])) {
            return null;
        }
        if ($this->headerObjects[$index] === null) {
            $this->headerObjects[$index] = $this->headerFactory->newInstance(
                $this->headers[$index][0],
                $this->headers[$index][1]
            );
        }
        return $this->headerObjects[$index];
    }
536320
public function setInstanceAnonymousness($instanceName, $anonymous) {
		if ($anonymous) {
			$this->declaredInstances[$instanceName]['anonymous'] = true;
			// An anonymous object must be weak.
			$this->declaredInstances[$instanceName]['weak'] = true;
		} else {
			unset($this->declaredInstances[$instanceName]['anonymous']);
		}
	}
1234532
private static function getInstance(string $className): string
    {
        $collector = EntityCollector::getCollector();
        if (!isset($collector[$className]['instance'])) {
            return Pool::INSTANCE;
        }

        return $collector[$className]['instance'];
    }
806982
private function getParameters($type, $index = null)
    {
        // If the type is invalid, return an empty array
        if ( ! in_array($type, ['dataset', 'messageset', 'ruleset'])) return [];

        return array_get($this->{$type}, $index, []);
    }
382218
public function getParameterType($instanceName, $paramName) {
		if (isset($this->declaredInstances[$instanceName]['fieldProperties'][$paramName]['type'])) {
			return $this->declaredInstances[$instanceName]['fieldProperties'][$paramName]['type'];
		} else {
			return null;
		}
	}
743919
public com.google.appengine.v1.Instance getInstances(int index) {
    return instances_.get(index);
  }
1256889
public function newInstance($index)
    {
        $id = strtolower($index);
        if (!isset(static::$indexList[get_called_class()][$id])) {
            throw new \RuntimeException('No FileRequest found for: ' . $id);
        }
        $class = static::$indexList[get_called_class()][$id];
        return new $class;
    }
1273013
public function getParameter($instanceName, $paramName) {
		// todo: improve this
		if (isset($this->declaredInstances[$instanceName]['fieldProperties'][$paramName]['value'])) {
			return $this->declaredInstances[$instanceName]['fieldProperties'][$paramName]['value'];
		} else {
			return null;
		}
	}
1094943
private function getComponentsListBoundToInstance($instanceName) {
		$componentsList = array();
		$boundComponents = $this->moufManager->getBoundComponents($instanceName);

		if (is_array($boundComponents)) {
			foreach ($boundComponents as $property=>$components) {
				if (is_array($components)) {
					$componentsList = array_merge($componentsList, $components);
				} else {
					$componentsList[] = $components;
				}
			}
		}
		return $componentsList;
	}
885952
private function wrapInstanceWithLazyProxy($className, $instanceConstructor) {
        $proxyParameters = [

        ];
        return $this->getLazyProxyFactory()->createProxy(
            $className,
            function (&$wrappedObject, LazyLoadingInterface $proxy) use ($instanceConstructor) {
                $proxy->setProxyInitializer(null);
                $wrappedObject = $instanceConstructor();
                return true;
            },
            $proxyParameters
        );
    }
369925
public function item(int $index): ?string
    {
        $classes = $this->getClasses();

        return $classes[$index] ?? null;
    }