/** * @param node the ASTNode * @return the {@link ConstraintVariable2} associated with the node, or <code>null</code> */ protected static ConstraintVariable2 getConstraintVariable(ASTNode node) { return (ConstraintVariable2) node.getProperty(CV_PROP); }
/** * @param node the ASTNode * @return the {@link ConstraintVariable2} associated with the node, or <code>null</code> */ protected static ConstraintVariable2 getConstraintVariable(ASTNode node) { return (ConstraintVariable2) node.getProperty(CV_PROP); }
/** * @param node the ASTNode * @return the {@link ConstraintVariable2} associated with the node, or <code>null</code> */ protected static ConstraintVariable2 getConstraintVariable(ASTNode node) { return (ConstraintVariable2) node.getProperty(CV_PROP); }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
public final boolean isRangeCopyPlaceholder(ASTNode node) { return node.getProperty(INTERNAL_PLACEHOLDER_PROPERTY) != null; }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
boolean checkMalformedNodes(ASTNode node) { Object property = node.getProperty(CONTAINS_MALFORMED_NODES); if (property == null) return false; return ((Boolean) property).booleanValue(); }
public static ICompilationUnit getCu(ASTNode node) { Object property= node.getRoot().getProperty(CU_PROPERTY); if (property instanceof ICompilationUnit) return (ICompilationUnit)property; return null; } }
public static ICompilationUnit getCu(ASTNode node) { Object property= node.getRoot().getProperty(CU_PROPERTY); if (property instanceof ICompilationUnit) return (ICompilationUnit)property; return null; } }
public static ICompilationUnit getCu(ASTNode node) { Object property= node.getRoot().getProperty(CU_PROPERTY); if (property instanceof ICompilationUnit) return (ICompilationUnit)property; return null; } }
@Override public SourceRange computeSourceRange(ASTNode node) { if (Boolean.TRUE.equals(node.getProperty(UNTOUCH_COMMENT))) { return new SourceRange(node.getStartPosition(), node.getLength()); } return super.computeSourceRange(node); } });
@Override public void postVisit(ASTNode node) { Object property= node.getProperty(PROPERTY_KEY); if (property == RETAINED) { int end= node.getStartPosition() + node.getLength(); fRemovingStart= end; } else if (property == REMOVED) { if (fRemovingStart != -1) { int end= node.getStartPosition() + node.getLength(); removedStartsEnds.add(new int[] { fRemovingStart, end }); fRemovingStart= -1; } } super.postVisit(node); } });