code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public String asString() {
final StringBuilder builder = new StringBuilder();
boolean first = true;
for (int i = 1; i < this.nodeList.size(); i++) {
final NodeImpl nodeImpl = (NodeImpl) this.nodeList.get(i);
final String name = nodeImpl.asString();
if (name.isEmpty()) {
// skip the... | java |
@Override
public <T extends BaseProxy> T create(final Class<T> clazz) {
this.checkLocked();
final SimpleProxyId<T> id = this.state.requestFactory.allocateId(clazz);
final AutoBean<T> created = this.createProxy(clazz, id, false);
return this.takeOwnership(created);
} | java |
public <T extends BaseProxy> T editProxy(final T object) {
AutoBean<T> bean = this.checkStreamsNotCrossed(object);
this.checkLocked();
@SuppressWarnings("unchecked")
final AutoBean<T> previouslySeen =
(AutoBean<T>) this.state.editedProxies.get(BaseProxyCategory.stableId(bean));
if (previous... | java |
@Override
public void fire() {
boolean needsReceiver = true;
for (final AbstractRequest<?, ?> request : this.state.invocations) {
if (request.hasReceiver()) {
needsReceiver = false;
break;
}
}
if (needsReceiver) {
this.doFire(new Receiver<Void>() {
@Override
... | java |
protected <T extends BaseProxy> AutoBean<T> createProxy(final Class<T> clazz,
final SimpleProxyId<T> id, final boolean useAppendedContexts) {
AutoBean<T> created = null;
if (useAppendedContexts) {
for (final AbstractRequestContext ctx : this.state.appendedContexts) {
created = ctx.getAutoBea... | java |
SimpleProxyId<BaseProxy> getId(final IdMessage op) {
if (Strength.SYNTHETIC.equals(op.getStrength())) {
return this.allocateSyntheticId(op.getTypeToken(), op.getSyntheticId());
}
return this.state.requestFactory.getId(op.getTypeToken(), op.getServerId(), op.getClientId());
} | java |
<Q extends BaseProxy> AutoBean<Q> getProxyForReturnPayloadGraph(final SimpleProxyId<Q> id) {
@SuppressWarnings("unchecked")
AutoBean<Q> bean = (AutoBean<Q>) this.state.returnedProxies.get(id);
if (bean == null) {
final Class<Q> proxyClass = id.getProxyClass();
bean = this.createProxy(proxyClass,... | java |
AutoBean<OperationMessage> makeOperationMessage(final SimpleProxyId<BaseProxy> stableId,
final AutoBean<?> proxyBean, final boolean useDelta) {
// The OperationMessages describes operations on exactly one entity
final AutoBean<OperationMessage> toReturn = MessageFactoryHolder.FACTORY.operation();
fin... | java |
<Q extends BaseProxy> Q processReturnOperation(final SimpleProxyId<Q> id,
final OperationMessage op, final WriteOperation... operations) {
final AutoBean<Q> toMutate = this.getProxyForReturnPayloadGraph(id);
toMutate.setTag(Constants.VERSION_PROPERTY_B64, op.getVersion());
final Map<String, Splittab... | java |
private <Q extends BaseProxy> SimpleProxyId<Q> allocateSyntheticId(final String typeToken,
final int syntheticId) {
@SuppressWarnings("unchecked")
SimpleProxyId<Q> toReturn = (SimpleProxyId<Q>) this.state.syntheticIds.get(syntheticId);
if (toReturn == null) {
toReturn = this.state.requestFactory... | java |
private <T> AutoBean<T> checkStreamsNotCrossed(final T object) {
final AutoBean<T> bean = AutoBeanUtils.getAutoBean(object);
if (bean == null) {
// Unexpected; some kind of foreign implementation?
throw new IllegalArgumentException(object.getClass().getName());
}
final State otherState = be... | java |
private void freezeEntities(final boolean frozen) {
for (final AutoBean<?> bean : this.state.editedProxies.values()) {
bean.setFrozen(frozen);
}
} | java |
private void makeImmutable(final AutoBean<? extends BaseProxy> toMutate) {
// Always diff'ed against itself, producing a no-op
toMutate.setTag(Constants.PARENT_OBJECT, toMutate);
// Act with entity-identity semantics
toMutate.setTag(REQUEST_CONTEXT_STATE, null);
toMutate.setFrozen(true);
} | java |
private List<InvocationMessage> makePayloadInvocations() {
final MessageFactory f = MessageFactoryHolder.FACTORY;
final List<InvocationMessage> invocationMessages = new ArrayList<>();
for (final AbstractRequest<?, ?> invocation : this.state.invocations) {
// RequestData is produced by the generated s... | java |
private void processReturnOperations(final ResponseMessage response) {
final List<OperationMessage> ops = response.getOperations();
// If there are no observable effects, this will be null
if (ops == null) {
return;
}
for (final OperationMessage op : ops) {
final SimpleProxyId<?> id = ... | java |
private void retainArg(final Object arg) {
if (arg instanceof Iterable<?>) {
for (final Object o : (Iterable<?>) arg) {
this.retainArg(o);
}
} else if (arg instanceof BaseProxy) {
// Calling edit will validate and set up the tracking we need
this.edit((BaseProxy) arg);
}
} | java |
private <T extends BaseProxy> T takeOwnership(final AutoBean<T> bean) {
this.state.editedProxies.put(stableId(bean), bean);
bean.setTag(REQUEST_CONTEXT_STATE, this.state);
return bean.as();
} | java |
public void showErrors(final Set<String> messages) {
final InputElement inputElement = this.getInputElement();
if (messages.isEmpty()) {
if (FeatureCheck.supportCustomValidity(inputElement)) {
inputElement.setCustomValidity(StringUtils.EMPTY);
}
if (this.validationMessageElement == nul... | java |
@Override
public void readSessionData() {
this.dispatcher.execute(this.userService.isCurrentUserLoggedIn(),
new AbstractSimpleRestCallback<GwtpSpringSession<T>, Boolean, HttpMessages>(this, this) {
@Override
public void onSuccess(final Boolean presult) {
if (BooleanUtils.i... | java |
@GwtIncompatible("incompatible method")
@SuppressWarnings("unchecked")
@Nullable
public static <T> T findValueOfType(final Collection<?> collection,
@Nullable final Class<T> type) {
if (CollectionUtils.isEmpty(collection)) {
return null;
}
T value = null;
for (final Object element : co... | java |
@Nullable
public static <T> T lastElement(@Nullable final List<T> list) {
if (CollectionUtils.isEmpty(list)) {
return null;
}
return list.get(list.size() - 1);
} | java |
@SuppressWarnings("unchecked")
public static <K, V> MultiValueMap<K, V> unmodifiableMultiValueMap(
final MultiValueMap<? extends K, ? extends V> map) {
Assert.notNull(map, "'map' must not be null");
final Map<K, List<V>> result = new LinkedHashMap<>(map.size());
map.forEach((key, value) -> {
f... | java |
BeanHelper createHelper(final JClassType pjtype, final TreeLogger plogger,
final GeneratorContext pcontext) throws UnableToCompleteException {
final JClassType erasedType = pjtype.getErasedType();
try {
final Class<?> clazz = Class.forName(erasedType.getQualifiedBinaryName());
return doCreateH... | java |
private void doCreateHelperForProp(final PropertyDescriptor propertyDescriptor,
final BeanHelper parent, final TreeLogger logger, final GeneratorContext context)
throws UnableToCompleteException {
final Class<?> elementClass = propertyDescriptor.getElementClass();
if (GwtSpecificValidatorCreator.isI... | java |
private void generateMapRecursive(final List<NavigationEntryInterface> pnavigationEntries) {
for (final NavigationEntryInterface entryToAdd : pnavigationEntries) {
String token = entryToAdd.getToken();
if (entryToAdd.getMenuValue() != null && token != null) {
if (token.endsWith("/" + StringUtils... | java |
private List<NavigationEntryInterface> recursiveGetEntries(
final List<NavigationEntryInterface> pnavigationEntries) {
if (pnavigationEntries == null) {
return Collections.emptyList();
}
return pnavigationEntries.stream().filter(entry -> entry.canReveal()).map(entry -> {
if (entry instance... | java |
public static <T> ConstraintViolation<T> forReturnValueValidation(final String messageTemplate,
final Map<String, Object> messageParameters, final Map<String, Object> expressionVariables,
final String interpolatedMessage, final Class<T> rootBeanClass, final T rootBean,
final Object leafBeanInstance, f... | java |
private int createHashCode() {
return Objects.hash(this.interpolatedMessage, this.propertyPath, this.rootBean,
this.leafBeanInstance, this.value, this.constraintDescriptor, this.messageTemplate,
this.elementType);
} | java |
private void initFromAttributes(Context context, AttributeSet attrs,
int defStyleAttr, int defStyleRes) {
// Read and apply provided attributes
TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.JCropImageView, defStyleAttr, defStyleRes);
... | java |
public void await(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException {
if (!latch.await(timeout, unit)) {
throw new TimeoutException();
}
} | java |
public static <T> HashSet<T> newHashSet(final Iterable<? extends T> iterable) {
final HashSet<T> set = newHashSet();
for (final T t : iterable) {
set.add(t);
}
return set;
} | java |
@SafeVarargs
public static <T> ArrayList<T> newArrayList(final Iterable<T>... iterables) {
final ArrayList<T> resultList = newArrayList();
for (final Iterable<T> oneIterable : iterables) {
for (final T oneElement : oneIterable) {
resultList.add(oneElement);
}
}
return resultList;
... | java |
public static <T> List<T> toImmutableList(final List<? extends T> list) {
switch (list.size()) {
case 0:
return Collections.emptyList();
case 1:
return Collections.singletonList(list.get(0));
default:
return Collections.unmodifiableList(list);
}
} | java |
public static <T> Set<T> toImmutableSet(final Set<? extends T> set) {
switch (set.size()) {
case 0:
return Collections.emptySet();
case 1:
return Collections.singleton(set.iterator().next());
default:
return Collections.unmodifiableSet(set);
}
} | java |
public static <K, V> Map<K, V> toImmutableMap(final Map<K, V> map) {
switch (map.size()) {
case 0:
return Collections.emptyMap();
case 1:
final Entry<K, V> entry = map.entrySet().iterator().next();
return Collections.singletonMap(entry.getKey(), entry.getValue());
default:
... | java |
protected static PhoneCountryConstantsImpl createPhoneCountryConstants(final Locale plocale) {
final Map<String, String> phoneCountryNames =
CreatePhoneCountryConstantsClass.readPhoneCountryNames(plocale);
final Map<String, String> phoneCountryCodes =
CreatePhoneCountryConstantsClass.readPhoneCo... | java |
public static String RToSqlUdf(List<String> RExps, List<String> selectedColumns, List<Column> existingColumns) {
List<String> udfs = Lists.newArrayList();
Map<String, String> newColToDef = new HashMap<String, String>();
boolean updateOnConflict = (selectedColumns == null || selectedColumns.isEmpty());
S... | java |
public static List<String> getCurrentRevisionIDs(Document doc) throws ForestException {
List<String> currentRevIDs = new ArrayList<String>();
do {
currentRevIDs.add(doc.getSelectedRevID());
} while (doc.selectNextLeaf(false, false));
return currentRevIDs;
} | java |
public final void addSubEntries(final Collection<NavigationEntryInterface> psubEntries) {
if (!CollectionUtils.isEmpty(psubEntries)) {
subEntries.addAll(psubEntries);
subEntries.forEach(subEntry -> subEntry.setParentEntry(this));
}
} | java |
public static Locale convertLanguageToLocale(final String planguage) {
final Locale locale;
if (planguage == null) {
locale = null;
} else {
final String localeStringUp = planguage.toUpperCase().replace('-', '_');
if (LocaleUtil.DEFAULT_MAP.containsKey(localeStringUp)) {
locale = L... | java |
public static String locateDirectory(String dirName) throws IOException {
if (Utils.dirExists(dirName)) return dirName;
String path = null;
String curDir = new File(".").getCanonicalPath();
// Go for at most 10 levels up
for (int i = 0; i < 10; i++) {
path = String.format("%s/%s", curDir, di... | java |
public static String getBankNumberOfIban(final String pstring) {
final String compressedIban = ibanCompress(pstring);
final String country = StringUtils.substring(compressedIban, 0, 2);
final IbanLengthDefinition length = IBAN_LENGTH_MAP.ibanLengths().get(country);
return length == null ? null
:... | java |
public static String getAccountNumberOfIban(final String pstring) {
final String compressedIban = ibanCompress(pstring);
final String country = StringUtils.substring(compressedIban, 0, 2);
final IbanLengthDefinition length = IBAN_LENGTH_MAP.ibanLengths().get(country);
return length == null ? null
... | java |
public static String getBicOfIban(final String pstring) {
final String country = StringUtils.substring(pstring, 0, 2);
final String bankNumber = getBankNumberOfIban(pstring);
return BANK_ACCOINT_BIC_MAP.bankAccounts().get(new CountryBankAccountData(country, bankNumber));
} | java |
protected void addURL(final URL url) {
final URL[] newUrls = new URL[this.urls.length + 1];
System.arraycopy(url, 0, newUrls, 0, this.urls.length);
newUrls[this.urls.length] = url;
this.urls = newUrls;
} | java |
public static String asLiteral(final Object value) throws IllegalArgumentException {
final Class<?> clazz = value.getClass();
if (clazz.isArray()) {
final StringBuilder sb = new StringBuilder();
final Object[] array = (Object[]) value;
sb.append("new " + clazz.getComponentType().getCanonical... | java |
public static boolean isIterableOrMap(final Class<?> elementClass) {
// TODO(nchalko) handle iterables everywhere this is called.
return elementClass.isArray() || Iterable.class.isAssignableFrom(elementClass)
|| Map.class.isAssignableFrom(elementClass);
} | java |
static <T extends Annotation> Class<?> getTypeOfConstraintValidator(
final Class<? extends ConstraintValidator<T, ?>> constraintClass) {
int candidateCount = 0;
Class<?> result = null;
for (final Method method : constraintClass.getMethods()) {
if (method.getName().equals("isValid") && method.ge... | java |
private void writeValidatorCall(final SourceWriter sw, final Class<?> type, final Stage stage,
final PropertyDescriptor ppropertyDescription, final boolean expandDefaultGroupSequence,
final String groupsVarName) throws UnableToCompleteException {
if (cache.isClassConstrained(type) && !isIterableOrMap(ty... | java |
public static boolean containsElement(@Nullable final Object[] array, final Object element) {
if (array == null) {
return false;
}
for (final Object arrayEle : array) {
if (ObjectUtils.nullSafeEquals(arrayEle, element)) {
return true;
}
}
return false;
} | java |
public static boolean containsConstant(final Enum<?>[] enumValues, final String constant) {
return ObjectUtils.containsConstant(enumValues, constant, false);
} | java |
public static boolean containsConstant(final Enum<?>[] enumValues, final String constant,
final boolean caseSensitive) {
for (final Enum<?> candidate : enumValues) {
if (caseSensitive ? candidate.toString().equals(constant)
: candidate.toString().equalsIgnoreCase(constant)) {
return tr... | java |
public boolean removeColumn(String name) {
if (getColumnIndex(name) < 0)
return false;
this.mColumns.remove(getColumnIndex(name));
return true;
} | java |
public boolean removeColumn(int i) {
if (getColumn(i) == null)
return false;
this.mColumns.remove(i);
return true;
} | java |
@UiChild(limit = 1, tagname = "label")
public void setChildLabel(final Widget plabel) {
label = plabel;
getLayout().add(label);
} | java |
public static <T, E extends Editor<? super T>> ListValidationEditor<T, E> of( // NOPMD
final EditorSource<E> source) {
return new ListValidationEditor<>(source);
} | java |
public static <T> Collection<T> getAllBeansOfType(WeldContainer weldContainer, Class<T> type) {
Collection<T> beans = Lists.newArrayList();
Set<Bean<?>> cdiBeans = weldContainer.getBeanManager().getBeans(type, AnyLiteral.INSTANCE);
// searches all beans for beans that have the matching goal name, ...
fo... | java |
public static PathImpl instantiate(final SerializationStreamReader streamReader)
throws SerializationException {
final String propertyPath = streamReader.readString();
return PathImpl.createPathFromString(propertyPath);
} | java |
public static String delete(final String inString, final String pattern) {
return StringUtils.replace(inString, pattern, "");
} | java |
public void setFor(final IsWidget target) {
if (init) {
return;
}
init = true;
//
final InputElement input = getInputElement(target.asWidget());
if (input != null) {
if (!input.hasAttribute("id")) {
input.setId(DOM.createUniqueId());
}
getElement().setAttribute("... | java |
public PMMLPlanner setRetainOnlyActiveFields(){
Evaluator evaluator = getEvaluator();
Fields incomingFields = new Fields()
.append(FieldsUtil.getActiveFields(evaluator))
.append(FieldsUtil.getGroupFields(evaluator));
return setRetainedFields(incomingFields);
} | java |
public Set<MessageAndPath> getMessageAndPaths() {
if (!this.disableDefault) {
this.messages
.add(new MessageAndPath(this.basePath, this.getDefaultConstraintMessageTemplate()));
}
return this.messages;
} | java |
Map<String, String> parseQueryString(final String queryString, final Map<String, String> into) {
final Map<String, String> result = (into == null) ? new HashMap<>() : into;
if (StringUtils.isNotEmpty(queryString)) {
for (final String keyValuePair : queryString.split("&")) {
final String[] keyValu... | java |
protected final String parseAndFormatDate(final String pversionDate) {
Date date;
if (StringUtils.isEmpty(pversionDate)) {
date = new Date();
} else {
try {
date = versionDateFormat.parse(pversionDate);
} catch (final IllegalArgumentException e) {
date = new Date();
}... | java |
public T get() throws IllegalStateException {
switch (this.state) {
case INCOMPLETE:
// Do not block browser so just throw ex
throw new IllegalStateException("The server response did not yet recieved.");
case FAILED:
throw new IllegalStateException(this.error);
case SUCCEED... | java |
@Ignore
public TextBoxBase getTextBox() {
if (getTakesValues() instanceof SuggestBox) {
return (TextBoxBase) ((SuggestBox) getTakesValues()).getValueBox();
}
return null;
} | java |
@Ignore
public ValueBoxBase<String> getValueBox() {
if (getTakesValues() instanceof SuggestBox) {
return ((SuggestBox) getTakesValues()).getValueBox();
}
return null;
} | java |
public static String[] getArgsTypeNameArray(Class<?>[] argsTypes) {
String[] argsTypeArray = null;
if (argsTypes != null) {
argsTypeArray = new String[argsTypes.length];
for (int i = 0; i < argsTypes.length; i++) {
argsTypeArray[i] = argsTypes[i].getName();
... | java |
public static String getArgsTypeName(String[] argTypes) {
if (argTypes != null) {
return StringUtil.join(argTypes, ',');
}
return StringUtil.EMPTY;
} | java |
@SuppressWarnings("unchecked")
public Iterable<ConstraintViolation<?>> convert(final ValidationResultInterface psource,
final E pbean) {
if (psource == null) {
return null;
}
return psource.getValidationErrorSet().stream()
.map(violation -> ConstraintViolationImpl.forBeanValidation( //... | java |
public static String escapeMessageParameter(final String messageParameter) {
if (messageParameter == null) {
return null;
}
return ESCAPE_MESSAGE_PARAMETER_PATTERN.replace(messageParameter,
String.valueOf(ESCAPE_CHARACTER) + "$1"); // NOPMD
} | java |
public static String syncRestCall(final String purl) {
try {
return CACHE.get(purl);
} catch (final ExecutionException e) {
GWT.log(e.getMessage(), e);
return null;
}
} | java |
private static String syncRestNativeCall(final String purl) {
final XMLHttpRequest xmlHttp = Browser.getWindow().newXMLHttpRequest();
xmlHttp.open("GET", purl, false); // false for synchronous request
xmlHttp.send();
return xmlHttp.getResponseText();
} | java |
@Override
public IModel train(String trainMethodName, Object... paramArgs) throws DDFException {
/**
* Example signatures we must support:
* <p/>
* Unsupervised Training
* <p/>
* <code>
* Kmeans.train(data: RDD[Array[Double]], k: Int, maxIterations: Int, runs: Int, initializationMode... | java |
@SuppressWarnings("unchecked")
protected ValueBoxBase<E> getTextBoxFromEvent(final GwtEvent<?> pevent) {
final ValueBoxBase<E> ptextBox;
if (pevent.getSource() instanceof SuggestBox) {
ptextBox = (ValueBoxBase<E>) ((SuggestBox) pevent.getSource()).getValueBox();
} else if (pevent.getSource() instanc... | java |
public User getLoggedInUser() {
User user = null;
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication != null) {
final Object principal = authentication.getPrincipal();
// principal can be "anonymousUser" (String)
if (principal... | java |
@Override
public Configuration loadConfig() throws ConfigurationException, IOException {
Configuration resultConfig = new Configuration();
if (!Utils.localFileExists(this.getConfigFileName())) {
// String configFileName = System.getenv(ConfigConstant.DDF_INI_ENV_VAR.getValue());
File file = new ... | java |
private String locateConfigFileName(String configDir, String configFileName) throws IOException {
String curDir = new File(".").getCanonicalPath();
String path = null;
// Go for at most 10 levels up
for (int i = 0; i < 10; i++) {
path = String.format("%s/%s", curDir, configFileName);
if (U... | java |
public Set<Class<?>> findAllExtendedGroups(final Collection<Class<?>> baseGroups)
throws IllegalArgumentException {
final Set<Class<?>> found = new HashSet<>();
final Stack<Class<?>> remaining = new Stack<>();
// initialize
baseGroups.forEach(group -> {
if (!inheritanceMapping.containsKey(gr... | java |
private void updateServiceLocalCache() {
try {
LOG.info("Update local cache now...");
zkClient.getChildren(NaviCommonConstant.ZOOKEEPER_BASE_PATH);
LOG.info("Zookeeper global root path is " + NaviCommonConstant.ZOOKEEPER_BASE_PATH);
ServiceLocalCache.prepare(... | java |
private void doConnect() {
try {
LOG.info("Connecting to zookeeper server - " + RpcClientConf.ZK_SERVER_LIST);
zkClient = new SimpleZooKeeperClient(RpcClientConf.ZK_SERVER_LIST,
RpcClientConf.ZK_DIGEST_AUTH, new ServiceWatcher());
updateServiceLocalCa... | java |
private boolean isInZkWathcedNamespacePaths(String path) {
if (StringUtil.isEmpty(path)) {
return false;
}
for (String watchNamespacePath : RpcClientConf.ZK_WATCH_NAMESPACE_PATHS) {
if (StringUtil.isEmpty(watchNamespacePath)) {
continue;
... | java |
private boolean checkDeTaxNumber(final String ptaxNumber) {
final int fa = Integer.parseInt(StringUtils.substring(ptaxNumber, 2, 4));
final int sb = Integer.parseInt(StringUtils.substring(ptaxNumber, 5, 8));
final int checkSum = ptaxNumber.charAt(12) - '0';
if (StringUtils.startsWith(ptaxNumber, "11... | java |
public static Map<String, Object> parse(String fileContent) {
MapFormatter f = new MapFormatter();
Parser p = new Parser(f);
p.parse(fileContent, "feature", 0);
return f.getFeature();
} | java |
public static Map<String, String> readPhoneCountryNames(final Locale plocale) {
final PhoneCountryNameConstants phoneCountryNames = GWT.create(PhoneCountryNameConstants.class);
return phoneCountryNames.phoneCountryNames();
} | java |
public static Map<String, String> readPhoneCountryCodes(final Locale plocale) {
final PhoneCountryCodeConstants phoneCountryCodes = GWT.create(PhoneCountryCodeConstants.class);
return phoneCountryCodes.phoneCountryCodes();
} | java |
public static Map<String, String> readPhoneTrunkAndExitCodes(final Locale plocale) {
final PhoneCountryTrunkAndExitCodesConstants phoneTrunkAndExitCodes =
GWT.create(PhoneCountryTrunkAndExitCodesConstants.class);
return phoneTrunkAndExitCodes.phoneTrunkAndExitCodes();
} | java |
public static NodeImpl createContainerElementNode(final String name, final NodeImpl parent) {
return new NodeImpl( //
name, //
parent, //
false, //
null, //
null, //
ElementKind.CONTAINER_ELEMENT, //
EMPTY_CLASS_ARRAY, //
null, //
null, //
... | java |
public static NodeImpl createParameterNode(final String name, final NodeImpl parent,
final int parameterIndex) {
return new NodeImpl( //
name, //
parent, //
false, //
null, //
null, //
ElementKind.PARAMETER, //
EMPTY_CLASS_ARRAY, //
parameterInde... | java |
public static NodeImpl createCrossParameterNode(final NodeImpl parent) {
return new NodeImpl( //
CROSS_PARAMETER_NODE_NAME, //
parent, //
false, //
null, //
null, //
ElementKind.CROSS_PARAMETER, //
EMPTY_CLASS_ARRAY, //
null, //
null, //
... | java |
public static NodeImpl createMethodNode(final String name, final NodeImpl parent,
final Class<?>[] parameterTypes) {
return new NodeImpl( //
name, //
parent, //
false, //
null, //
null, //
ElementKind.METHOD, //
parameterTypes, //
null, //
... | java |
public static NodeImpl createConstructorNode(final String name, final NodeImpl parent,
final Class<?>[] parameterTypes) {
return new NodeImpl( //
name, //
parent, //
false, //
null, //
null, //
ElementKind.CONSTRUCTOR, //
parameterTypes, //
null,... | java |
public static NodeImpl createBeanNode(final NodeImpl parent) {
return new NodeImpl( //
null, //
parent, //
false, //
null, //
null, //
ElementKind.BEAN, EMPTY_CLASS_ARRAY, //
null, //
null, //
null, //
null //
);
} | java |
public static NodeImpl createReturnValue(final NodeImpl parent) {
return new NodeImpl( //
RETURN_VALUE_NODE_NAME, //
parent, //
false, //
null, //
null, //
ElementKind.RETURN_VALUE, //
EMPTY_CLASS_ARRAY, //
null, //
null, //
null, //
... | java |
public static NodeImpl makeIterable(final NodeImpl node) {
return new NodeImpl( //
node.name, //
node.parent, //
true, //
null, //
null, //
node.kind, //
node.parameterTypes, //
node.parameterIndex, //
node.value, //
node.containerClass... | java |
public static NodeImpl makeIterableAndSetIndex(final NodeImpl node, final Integer index) {
return new NodeImpl( //
node.name, //
node.parent, //
true, //
index, //
null, //
node.kind, //
node.parameterTypes, //
node.parameterIndex, //
node.valu... | java |
public static NodeImpl makeIterableAndSetMapKey(final NodeImpl node, final Object key) {
return new NodeImpl( //
node.name, //
node.parent, //
true, //
null, //
key, //
node.kind, //
node.parameterTypes, //
node.parameterIndex, //
node.value, /... | java |
public static NodeImpl setPropertyValue(final NodeImpl node, final Object value) {
return new NodeImpl( //
node.name, //
node.parent, //
node.isIterableValue, //
node.index, //
node.key, //
node.kind, //
node.parameterTypes, //
node.parameterIndex, //
... | java |
public static NodeImpl setTypeParameter(final NodeImpl node, final Class<?> containerClass,
final Integer typeArgumentIndex) {
return new NodeImpl( //
node.name, //
node.parent, //
node.isIterableValue, //
node.index, //
node.key, //
node.kind, //
node.p... | java |
public final int buildHashCode() {
return Objects.hash(this.index, this.isIterableValue, this.key, this.kind, this.name,
this.parameterIndex, this.parameterTypes, this.parent, this.containerClass,
this.typeArgumentIndex);
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.