001 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 002 // for details. All rights reserved. Use of this source code is governed by a 003 // BSD-style license that can be found in the LICENSE file. 004 005 package com.google.dart.compiler.backend.js.ast; 006 007 public final class JsRegExp extends JsLiteral.JsValueLiteral { 008 private String flags; 009 private String pattern; 010 011 public JsRegExp() { 012 } 013 014 public String getFlags() { 015 return flags; 016 } 017 018 public String getPattern() { 019 return pattern; 020 } 021 022 public void setFlags(String suffix) { 023 flags = suffix; 024 } 025 026 public void setPattern(String re) { 027 pattern = re; 028 } 029 030 @Override 031 public void accept(JsVisitor v) { 032 v.visitRegExp(this); 033 } 034 }