Java 类com.intellij.psi.codeStyle.arrangement.DefaultArrangementEntry 实例源码

项目:intellij-ce-playground    文件:XmlArrangementVisitor.java   
@Nullable
private XmlElementArrangementEntry createNewEntry(@NotNull TextRange range,
                                                  @NotNull ArrangementSettingsToken type,
                                                  @Nullable String name,
                                                  @Nullable String namespace,
                                                  boolean canBeMatched) {
  if (range.getStartOffset() == 0 && range.getEndOffset() == 0 || !isWithinBounds(range)) {
    return null;
  }
  final DefaultArrangementEntry current = getCurrent();
  final XmlElementArrangementEntry entry = new XmlElementArrangementEntry(
    current, range, type, name, namespace, canBeMatched);

  if (current == null) {
    myInfo.addEntry(entry);
  }
  else {
    current.addChild(entry);
  }
  return entry;
}
项目:tools-idea    文件:XmlArrangementVisitor.java   
@Nullable
private XmlElementArrangementEntry createNewEntry(@NotNull TextRange range,
                                                  @NotNull ArrangementSettingsToken type,
                                                  @Nullable String name,
                                                  @Nullable String namespace,
                                                  boolean canBeMatched) {
  if (!isWithinBounds(range)) {
    return null;
  }
  final DefaultArrangementEntry current = getCurrent();
  final XmlElementArrangementEntry entry = new XmlElementArrangementEntry(
    current, range, type, name, namespace, canBeMatched);

  if (current == null) {
    myInfo.addEntry(entry);
  }
  else {
    current.addChild(entry);
  }
  return entry;
}
项目:consulo-xml    文件:XmlArrangementVisitor.java   
@Nullable
private XmlElementArrangementEntry createNewEntry(@NotNull TextRange range,
                                                  @NotNull ArrangementSettingsToken type,
                                                  @Nullable String name,
                                                  boolean canBeMatched) {
  if (!isWithinBounds(range)) {
    return null;
  }
  final DefaultArrangementEntry current = getCurrent();
  final XmlElementArrangementEntry entry = new XmlElementArrangementEntry(
    current, range, type, name, canBeMatched);

  if (current == null) {
    myInfo.addEntry(entry);
  }
  else {
    current.addChild(entry);
  }
  return entry;
}
项目:intellij-ce-playground    文件:XmlArrangementVisitor.java   
@Nullable
private DefaultArrangementEntry getCurrent() {
  return myStack.isEmpty() ? null : myStack.peek();
}
项目:tools-idea    文件:XmlArrangementVisitor.java   
@Nullable
private DefaultArrangementEntry getCurrent() {
  return myStack.isEmpty() ? null : myStack.peek();
}
项目:consulo-xml    文件:XmlArrangementVisitor.java   
@Nullable
private DefaultArrangementEntry getCurrent() {
  return myStack.isEmpty() ? null : myStack.peek();
}