List of usage examples for org.eclipse.jdt.core.dom CharacterLiteral getEscapedValue
public String getEscapedValue()
From source file:astview.Binding.java
License:Open Source License
public static String getEscapedCharLiteral(char charValue) { CharacterLiteral charLiteral = AST.newAST(8).newCharacterLiteral(); charLiteral.setCharValue(charValue); return charLiteral.getEscapedValue(); }
From source file:at.bestsolution.fxide.jdt.corext.dom.ASTFlattener.java
License:Open Source License
@Override public boolean visit(CharacterLiteral node) { this.fBuffer.append(node.getEscapedValue()); return false; }
From source file:boa.datagen.util.Java7Visitor.java
License:Apache License
@Override public boolean visit(CharacterLiteral node) { boa.types.Ast.Expression.Builder b = boa.types.Ast.Expression.newBuilder(); // b.setPosition(pos.build()); b.setKind(boa.types.Ast.Expression.ExpressionKind.LITERAL); b.setLiteral(node.getEscapedValue()); expressions.push(b.build());/* www. j av a 2 s .c o m*/ return false; }
From source file:cideplus.ui.astview.Binding.java
License:Open Source License
public static String getEscapedCharLiteral(char charValue) { CharacterLiteral charLiteral = AST.newAST(AST.JLS3).newCharacterLiteral(); charLiteral.setCharValue(charValue); return charLiteral.getEscapedValue(); }
From source file:coloredide.utils.CopiedNaiveASTFlattener.java
License:Open Source License
public boolean visit(CharacterLiteral node) { this.buffer.append(node.getEscapedValue()); return false; }
From source file:com.google.devtools.j2cpp.gen.CppStatementGenerator.java
License:Open Source License
@Override public boolean visit(CharacterLiteral node) { int c = node.charValue(); if (c >= 0x20 && c <= 0x7E) { // if ASCII buffer.append(UnicodeUtils.escapeUnicodeSequences(node.getEscapedValue())); } else {//from w w w .j a v a 2 s. co m buffer.append(String.format("0x%04x", c)); } return false; }
From source file:com.google.googlejavaformat.java.JavaInputAstVisitor.java
License:Apache License
/** Visitor method for {@link CharacterLiteral}s. */ @Override//from www . jav a2 s .co m public boolean visit(CharacterLiteral node) { sync(node); token(node.getEscapedValue()); return false; }
From source file:com.google.gwt.eclipse.core.refactoring.regionupdater.RenamedElementAstMatcher.java
License:Open Source License
@Override public boolean match(CharacterLiteral node, Object other) { if (!(other instanceof CharacterLiteral)) { return false; }//from w w w.j a v a 2s .c om CharacterLiteral o = (CharacterLiteral) other; return safeRenamedEquals(node.getEscapedValue(), o.getEscapedValue(), oldName, newName); }
From source file:com.microsoft.javapkgsrv.JavaElementLabelComposer.java
License:Open Source License
private static String getEscapedCharacterLiteral(char ch) { CharacterLiteral characterLiteral = AST.newAST(AST.JLS8).newCharacterLiteral(); characterLiteral.setCharValue(ch);/* w w w. j av a 2s .co m*/ return characterLiteral.getEscapedValue(); }
From source file:edu.cmu.cs.crystal.cfg.eclipse.EclipseCFG.java
License:Open Source License
@Override public void endVisit(CharacterLiteral node) { EclipseCFGNode num = nodeMap.get(node); num.setName(node.getEscapedValue()); }